From f460f6abd1146f4d54ace9ddae205645f01ce7f5 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 21 Jul 2020 17:13:23 +0200 Subject: [PATCH] Amazfit Bip S: Change Unknown menu item to "World Clock" Latest firmware has a world clock, setting the locations is not yet supported by Gadgetbridge --- .../devices/huami/amazfitbips/AmazfitBipSSupport.java | 4 ++-- app/src/main/res/values/arrays.xml | 6 +++--- app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/values.xml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSSupport.java index 7e62efe06..1b4d015d4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/amazfitbips/AmazfitBipSSupport.java @@ -123,12 +123,12 @@ public class AmazfitBipSSupport extends AmazfitBipSupport { 0x07, 0x00, (byte) 0xFF, 0x09, // Alarm 0x08, 0x00, (byte) 0xFF, 0x1B, // Timer 0x09, 0x00, (byte) 0xFF, 0x16, // Compass - 0x0A, 0x00, (byte) 0xFF, 0x1A, // Unknown + 0x0A, 0x00, (byte) 0xFF, 0x1A, // World clock 0x0B, 0x00, (byte) 0xFF, 0x0B, // Music 0x0C, 0x00, (byte) 0xFF, 0x13 // Settings }; - String[] keys = {"status", "hr", "pai", "workout", "alipay", "nfc", "weather", "alarm", "timer", "compass", "unknown", "music", "settings"}; + String[] keys = {"status", "hr", "pai", "workout", "alipay", "nfc", "weather", "alarm", "timer", "compass", "worldclock", "music", "settings"}; byte[] ids = {1, 2, 25, 3, 17, 16, 4, 9, 27, 22, 26, 11, 19}; if (pages != null) { diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 8ab63a0ac..99641dd85 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -437,7 +437,7 @@ @string/menuitem_alarm @string/menuitem_timer @string/menuitem_compass - @string/menuitem_unknown + @string/menuitem_worldclock @string/menuitem_music @string/menuitem_settings @@ -453,7 +453,7 @@ @string/p_menuitem_alarm @string/p_menuitem_timer @string/p_menuitem_compass - @string/p_menuitem_unknown + @string/p_menuitem_worldclock @string/p_menuitem_music @string/p_menuitem_settings @@ -469,7 +469,7 @@ @string/p_menuitem_alarm @string/p_menuitem_timer @string/p_menuitem_compass - @string/p_menuitem_unknown + @string/p_menuitem_worldclock @string/p_menuitem_music @string/p_menuitem_settings diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3a2904c86..1b78b1ce4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -779,6 +779,7 @@ Event Reminder Workout Unknown + World Clock Minutes: Hours: Seconds: diff --git a/app/src/main/res/values/values.xml b/app/src/main/res/values/values.xml index 6933e94ee..5a8bff4a9 100644 --- a/app/src/main/res/values/values.xml +++ b/app/src/main/res/values/values.xml @@ -37,7 +37,7 @@ pai eventreminder workout - unknown + worldclock off on