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)
This commit is contained in:
Andreas Shimokawa
2018-09-11 21:32:13 +02:00
parent 8b8202a96e
commit 6644ad0bb0
2 changed files with 7 additions and 0 deletions
@@ -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++;
+3
View File
@@ -210,6 +210,7 @@
<string-array name="pref_miband3_display_items">
<item>@string/menuitem_notifications</item>
<item>@string/menuitem_weather</item>
<item>@string/menuitem_activity</item>
<item>@string/menuitem_more</item>
<item>@string/menuitem_status</item>
<item>@string/heart_rate</item>
@@ -218,6 +219,7 @@
<string-array name="pref_miband3_display_items_values">
<item>@string/p_menuitem_notifications</item>
<item>@string/p_menuitem_weather</item>
<item>@string/p_menuitem_activity</item>
<item>@string/p_menuitem_more</item>
<item>@string/p_menuitem_status</item>
<item>@string/p_heart_rate</item>
@@ -226,6 +228,7 @@
<string-array name="pref_miband3_display_items_default">
<item>@string/p_menuitem_notifications</item>
<item>@string/p_menuitem_weather</item>
<item>@string/p_menuitem_activity</item>
<item>@string/p_menuitem_more</item>
<item>@string/p_menuitem_status</item>
<item>@string/p_heart_rate</item>