From 2ef461ab90cf23c46141d380983aa846e58f1788 Mon Sep 17 00:00:00 2001 From: MrYoranimo Date: Sat, 13 Jan 2024 15:21:09 +0100 Subject: [PATCH] Add header to device-specific activity data settings --- .../devicesettings/DeviceSpecificSettingsFragment.java | 1 + app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/devicesettings_activity_info_header.xml | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 app/src/main/res/xml/devicesettings_activity_info_header.xml diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/devicesettings/DeviceSpecificSettingsFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/devicesettings/DeviceSpecificSettingsFragment.java index 0ea61bccb..5bc3f4abc 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/devicesettings/DeviceSpecificSettingsFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/devicesettings/DeviceSpecificSettingsFragment.java @@ -1024,6 +1024,7 @@ public class DeviceSpecificSettingsFragment extends AbstractPreferenceFragment i supportedSettings = ArrayUtils.insert(0, supportedSettings, coordinator.getSupportedDeviceSpecificConnectionSettings()); supportedSettings = ArrayUtils.addAll(supportedSettings, coordinator.getSupportedDeviceSpecificApplicationSettings()); if (coordinator.supportsActivityTracking()) { + supportedSettings = ArrayUtils.addAll(supportedSettings, R.xml.devicesettings_activity_info_header); supportedSettings = ArrayUtils.addAll(supportedSettings, R.xml.devicesettings_chartstabs); supportedSettings = ArrayUtils.addAll(supportedSettings, R.xml.devicesettings_device_card_activity_card_preferences); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5ce3067aa..b44d1d618 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2587,4 +2587,5 @@ BOTH BLE BT_CLASSIC + Activity info diff --git a/app/src/main/res/xml/devicesettings_activity_info_header.xml b/app/src/main/res/xml/devicesettings_activity_info_header.xml new file mode 100644 index 000000000..5b281033c --- /dev/null +++ b/app/src/main/res/xml/devicesettings_activity_info_header.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file