diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitgts2/AmazfitGTS2MiniCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitgts2/AmazfitGTS2MiniCoordinator.java index 4471fe595..c94e2aef0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitgts2/AmazfitGTS2MiniCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitgts2/AmazfitGTS2MiniCoordinator.java @@ -26,7 +26,9 @@ import androidx.annotation.NonNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler; +import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate; import nodomain.freeyourgadget.gadgetbridge.model.DeviceType; @@ -58,4 +60,22 @@ public class AmazfitGTS2MiniCoordinator extends AmazfitGTS2Coordinator { AmazfitGTS2MiniFWInstallHandler handler = new AmazfitGTS2MiniFWInstallHandler(uri, context); return handler.isValid() ? handler : null; } + + public int[] getSupportedDeviceSpecificSettings(GBDevice device) { + return new int[]{ + R.xml.devicesettings_amazfitgts2mini, + R.xml.devicesettings_wearlocation, + R.xml.devicesettings_timeformat, + R.xml.devicesettings_liftwrist_display, + R.xml.devicesettings_disconnectnotification, + R.xml.devicesettings_sync_calendar, + R.xml.devicesettings_reserve_reminders_calendar, + R.xml.devicesettings_expose_hr_thirdparty, + R.xml.devicesettings_bt_connected_advertisement, + R.xml.devicesettings_device_actions, + R.xml.devicesettings_pairingkey, + R.xml.devicesettings_high_mtu, + R.xml.devicesettings_transliteration + }; + } } diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 6e696d523..7e9bccb2c 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -918,6 +918,86 @@ @string/p_menuitem_more + + @string/menuitem_goal + @string/menuitem_hr + @string/menuitem_pai + @string/menuitem_workout + @string/menuitem_activity + @string/menuitem_sleep + @string/menuitem_weather + @string/menuitem_alarm + @string/menuitem_eventreminder + @string/menuitem_stopwatch + @string/menuitem_timer + @string/menuitem_breathing + @string/menuitem_stress + @string/menuitem_spo2 + @string/menuitem_worldclock + @string/menuitem_pomodoro + @string/menuitem_music + @string/menuitem_cycles + @string/menuitem_compass + @string/menuitem_findphone + @string/menuitem_takephoto + @string/menuitem_alexa + @string/menuitem_settings + @string/menuitem_more + + + + @string/p_menuitem_goal + @string/p_menuitem_hr + @string/p_menuitem_pai + @string/p_menuitem_workout + @string/p_menuitem_activity + @string/p_menuitem_sleep + @string/p_menuitem_weather + @string/p_menuitem_alarm + @string/p_menuitem_eventreminder + @string/p_menuitem_stopwatch + @string/p_menuitem_timer + @string/p_menuitem_breathing + @string/p_menuitem_stress + @string/p_menuitem_spo2 + @string/p_menuitem_worldclock + @string/p_menuitem_pomodoro + @string/p_menuitem_music + @string/p_menuitem_cycles + @string/p_menuitem_compass + @string/p_menuitem_findphone + @string/p_menuitem_takephoto + @string/p_menuitem_alexa + @string/p_menuitem_settings + @string/p_menuitem_more + + + + @string/p_menuitem_goal + @string/p_menuitem_hr + @string/p_menuitem_pai + @string/p_menuitem_workout + @string/p_menuitem_activity + @string/p_menuitem_sleep + @string/p_menuitem_weather + @string/p_menuitem_alarm + @string/p_menuitem_eventreminder + @string/p_menuitem_stopwatch + @string/p_menuitem_timer + @string/p_menuitem_breathing + @string/p_menuitem_stress + @string/p_menuitem_spo2 + @string/p_menuitem_worldclock + @string/p_menuitem_pomodoro + @string/p_menuitem_music + @string/p_menuitem_cycles + @string/p_menuitem_compass + @string/p_menuitem_findphone + @string/p_menuitem_takephoto + @string/p_menuitem_settings + @string/p_menuitem_more + + @string/menuitem_status @string/menuitem_pai diff --git a/app/src/main/res/xml/devicesettings_amazfitgts2mini.xml b/app/src/main/res/xml/devicesettings_amazfitgts2mini.xml new file mode 100644 index 000000000..0281e8a04 --- /dev/null +++ b/app/src/main/res/xml/devicesettings_amazfitgts2mini.xml @@ -0,0 +1,21 @@ + + + + +