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 c2c1569bf..3c95c439a 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 @@ -242,20 +242,21 @@ public class QHybridCoordinator extends AbstractBLEDeviceCoordinator { } //Settings applicable to all firmware versions int[] supportedSettings = new int[]{ - R.xml.devicesettings_fossilhybridhr, R.xml.devicesettings_inactivity, + R.xml.devicesettings_fossilhybridhr_all_fw, R.xml.devicesettings_autoremove_notifications, R.xml.devicesettings_canned_dismisscall_16, - R.xml.devicesettings_transliteration + R.xml.devicesettings_transliteration, + R.xml.devicesettings_fossilhybridhr_dev }; - //Firmware specific settings + // Firmware version specific settings if (getFirmwareVersion() != null && getFirmwareVersion().smallerThan(new Version("3.0"))) { - supportedSettings = ArrayUtils.insert(0, supportedSettings, R.xml.devicesettings_fossilhybridhr_buttonconfiguration_pre_fw30); + supportedSettings = ArrayUtils.insert(0, supportedSettings, R.xml.devicesettings_fossilhybridhr_pre_fw300); } else { - supportedSettings = ArrayUtils.insert(0, supportedSettings, R.xml.devicesettings_fossilhybridhr_buttonconfiguration); + supportedSettings = ArrayUtils.insert(0, supportedSettings, R.xml.devicesettings_fossilhybridhr_post_fw300); } if (getFirmwareVersion() != null && getFirmwareVersion().smallerThan(new Version("2.20"))) { - supportedSettings = ArrayUtils.insert(1, supportedSettings, R.xml.devicesettings_fossilhybridhr_pre_fw20); + supportedSettings = ArrayUtils.insert(1, supportedSettings, R.xml.devicesettings_fossilhybridhr_pre_fw220); } return supportedSettings; } diff --git a/app/src/main/res/xml/devicesettings_fossilhybridhr.xml b/app/src/main/res/xml/devicesettings_fossilhybridhr_all_fw.xml similarity index 74% rename from app/src/main/res/xml/devicesettings_fossilhybridhr.xml rename to app/src/main/res/xml/devicesettings_fossilhybridhr_all_fw.xml index 2d0d49a05..c05326e6c 100644 --- a/app/src/main/res/xml/devicesettings_fossilhybridhr.xml +++ b/app/src/main/res/xml/devicesettings_fossilhybridhr_all_fw.xml @@ -114,15 +114,6 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/xml/devicesettings_fossilhybridhr_dev.xml b/app/src/main/res/xml/devicesettings_fossilhybridhr_dev.xml new file mode 100644 index 000000000..b0d83c628 --- /dev/null +++ b/app/src/main/res/xml/devicesettings_fossilhybridhr_dev.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/devicesettings_fossilhybridhr_buttonconfiguration.xml b/app/src/main/res/xml/devicesettings_fossilhybridhr_post_fw300.xml similarity index 100% rename from app/src/main/res/xml/devicesettings_fossilhybridhr_buttonconfiguration.xml rename to app/src/main/res/xml/devicesettings_fossilhybridhr_post_fw300.xml diff --git a/app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw20.xml b/app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw220.xml similarity index 100% rename from app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw20.xml rename to app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw220.xml diff --git a/app/src/main/res/xml/devicesettings_fossilhybridhr_buttonconfiguration_pre_fw30.xml b/app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw300.xml similarity index 86% rename from app/src/main/res/xml/devicesettings_fossilhybridhr_buttonconfiguration_pre_fw30.xml rename to app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw300.xml index 30cb3110a..9c6015046 100644 --- a/app/src/main/res/xml/devicesettings_fossilhybridhr_buttonconfiguration_pre_fw30.xml +++ b/app/src/main/res/xml/devicesettings_fossilhybridhr_pre_fw300.xml @@ -54,5 +54,14 @@ android:key="button_1_function_long_warning" android:summary="@string/fossil_hr_button_config_info" /> - + + + + + \ No newline at end of file