From 6644ad0bb0bb840b68c31b7f2b2bec0103493ade Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 11 Sep 2018 21:32:13 +0200 Subject: [PATCH] Mi Band 3: Allow enabling the "Workout" menu item (This is called "Activity" in Gadgetbridge, since we have that on the Bip, we should probably rename that to Workout also for consistency with the menus) --- .../service/devices/huami/miband3/MiBand3Support.java | 4 ++++ app/src/main/res/values/arrays.xml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/miband3/MiBand3Support.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/miband3/MiBand3Support.java index 70192943f..fdde8db14 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/miband3/MiBand3Support.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/miband3/MiBand3Support.java @@ -63,6 +63,10 @@ public class MiBand3Support extends AmazfitBipSupport { command[1] |= 0x04; command[5] = pos++; } + if (pages.contains("activity")) { + command[1] |= 0x08; + command[6] = pos++; + } if (pages.contains("more")) { command[1] |= 0x10; command[7] = pos++; diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index c31318900..b73d378cd 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -210,6 +210,7 @@ @string/menuitem_notifications @string/menuitem_weather + @string/menuitem_activity @string/menuitem_more @string/menuitem_status @string/heart_rate @@ -218,6 +219,7 @@ @string/p_menuitem_notifications @string/p_menuitem_weather + @string/p_menuitem_activity @string/p_menuitem_more @string/p_menuitem_status @string/p_heart_rate @@ -226,6 +228,7 @@ @string/p_menuitem_notifications @string/p_menuitem_weather + @string/p_menuitem_activity @string/p_menuitem_more @string/p_menuitem_status @string/p_heart_rate