From 37ba8c291e3b4f1ac15f118a435c862b76bef8f6 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 10 May 2022 15:49:34 +0200 Subject: [PATCH] Amazfit Band 5: Enbable lift wrist sensitivity and world clock configuration --- .../huami/amazfitband5/AmazfitBand5Coordinator.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitband5/AmazfitBand5Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitband5/AmazfitBand5Coordinator.java index 314c3887d..f4ed7aae0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitband5/AmazfitBand5Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitband5/AmazfitBand5Coordinator.java @@ -85,6 +85,16 @@ public class AmazfitBand5Coordinator extends HuamiCoordinator { return true; } + @Override + public int getWorldClocksSlotCount() { + return 20; // as enforced by Mi Fit + } + + @Override + public int getWorldClocksLabelLength() { + return 30; // at least + } + @Override public int[] getSupportedDeviceSpecificSettings(GBDevice device) { return new int[]{ @@ -94,7 +104,7 @@ public class AmazfitBand5Coordinator extends HuamiCoordinator { R.xml.devicesettings_timeformat, R.xml.devicesettings_dateformat, R.xml.devicesettings_nightmode, - R.xml.devicesettings_liftwrist_display, + R.xml.devicesettings_liftwrist_display_sensitivity, R.xml.devicesettings_swipeunlock, R.xml.devicesettings_sync_calendar, R.xml.devicesettings_reserve_reminders_calendar,