From ecc0f788488de8c713f8d55113806eecdb7215cb Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 8 Mar 2021 14:58:54 +0100 Subject: [PATCH] Fossil Hybrid HR: move autoremove notifications settings to own xml for reusability --- .../gadgetbridge/devices/qhybrid/QHybridCoordinator.java | 1 + .../res/xml/devicesettings_autoremove_notifications.xml | 8 ++++++++ app/src/main/res/xml/devicesettings_fossilhybridhr.xml | 5 ----- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/xml/devicesettings_autoremove_notifications.xml diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java index 3d0afc149..e1ab05aa4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/QHybridCoordinator.java @@ -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 }; diff --git a/app/src/main/res/xml/devicesettings_autoremove_notifications.xml b/app/src/main/res/xml/devicesettings_autoremove_notifications.xml new file mode 100644 index 000000000..7f41a3cf5 --- /dev/null +++ b/app/src/main/res/xml/devicesettings_autoremove_notifications.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/xml/devicesettings_fossilhybridhr.xml b/app/src/main/res/xml/devicesettings_fossilhybridhr.xml index 09b30f7a2..63000296f 100644 --- a/app/src/main/res/xml/devicesettings_fossilhybridhr.xml +++ b/app/src/main/res/xml/devicesettings_fossilhybridhr.xml @@ -80,11 +80,6 @@ android:defaultValue="false" android:key="save_raw_activity_files" android:title="@string/pref_qhybrid_save_raw_activity_files" /> -