1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Fossil Hybrid HR: move autoremove notifications settings to own xml for reusability

This commit is contained in:
Andreas Shimokawa 2021-03-08 14:58:54 +01:00
parent cff4b65fb8
commit ecc0f78848
3 changed files with 9 additions and 5 deletions

View File

@ -195,6 +195,7 @@ public class QHybridCoordinator extends AbstractDeviceCoordinator {
if (isHybridHR()) {
return new int[]{
R.xml.devicesettings_fossilhybridhr,
R.xml.devicesettings_autoremove_notifications,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_custom_deviceicon
};

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreference
android:defaultValue="true"
android:key="autoremove_notifications"
android:summary="@string/pref_summary_autoremove_notifications"
android:title="@string/pref_title_autoremove_notifications" />
</androidx.preference.PreferenceScreen>

View File

@ -80,11 +80,6 @@
android:defaultValue="false"
android:key="save_raw_activity_files"
android:title="@string/pref_qhybrid_save_raw_activity_files" />
<SwitchPreference
android:defaultValue="true"
android:key="autoremove_notifications"
android:summary="@string/pref_summary_autoremove_notifications"
android:title="@string/pref_title_autoremove_notifications" />
<SeekBarPreference
android:defaultValue="2"