1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 12:26:48 +01:00

Mi Band 6: Add flashlight to menu items

This commit is contained in:
Andreas Shimokawa 2021-09-02 11:07:44 +02:00
parent 4242f5ccd4
commit c965114c21
4 changed files with 29 additions and 21 deletions

View File

@ -61,5 +61,6 @@ class HuamiMenuType {
put("battery", 0x3a);
put("temperature", 0x40);
put("barometer", 0x41);
put("flashlight", 0x43);
}};
}

View File

@ -431,6 +431,7 @@
<item>@string/menuitem_cycles</item>
<item>@string/menuitem_spo2</item>
<item>@string/menuitem_breathing</item>
<item>@string/menuitem_flashlight</item>
</string-array>
<string-array name="pref_miband6_display_items_values">
@ -456,31 +457,33 @@
<item>@string/p_menuitem_cycles</item>
<item>@string/p_menuitem_spo2</item>
<item>@string/p_menuitem_breathing</item>
<item>@string/p_menuitem_flashlight</item>
</string-array>
<string-array name="pref_miband6_display_items_default">
<item>@string/menuitem_status</item>
<item>@string/menuitem_hr</item>
<item>@string/menuitem_workout</item>
<item>@string/menuitem_weather</item>
<item>@string/menuitem_notifications</item>
<item>@string/menuitem_alarm</item>
<item>@string/menuitem_takephoto</item>
<item>@string/p_menuitem_status</item>
<item>@string/p_menuitem_hr</item>
<item>@string/p_menuitem_workout</item>
<item>@string/p_menuitem_weather</item>
<item>@string/p_menuitem_notifications</item>
<item>@string/p_menuitem_alarm</item>
<item>@string/p_menuitem_takephoto</item>
<item>@string/p_menuitem_pomodoro</item>
<item>@string/menuitem_music</item>
<item>@string/menuitem_stopwatch</item>
<item>@string/menuitem_timer</item>
<item>@string/menuitem_findphone</item>
<item>@string/menuitem_mutephone</item>
<item>@string/menuitem_settings</item>
<item>@string/menuitem_activity</item>
<item>@string/menuitem_eventreminder</item>
<item>@string/menuitem_pai</item>
<item>@string/menuitem_worldclock</item>
<item>@string/menuitem_stress</item>
<item>@string/menuitem_cycles</item>
<item>@string/menuitem_spo2</item>
<item>@string/menuitem_breathing</item>
<item>@string/p_menuitem_music</item>
<item>@string/p_menuitem_stopwatch</item>
<item>@string/p_menuitem_timer</item>
<item>@string/p_menuitem_findphone</item>
<item>@string/p_menuitem_mutephone</item>
<item>@string/p_menuitem_settings</item>
<item>@string/p_menuitem_activity</item>
<item>@string/p_menuitem_eventreminder</item>
<item>@string/p_menuitem_pai</item>
<item>@string/p_menuitem_worldclock</item>
<item>@string/p_menuitem_stress</item>
<item>@string/p_menuitem_cycles</item>
<item>@string/p_menuitem_spo2</item>
<item>@string/p_menuitem_breathing</item>
<item>@string/p_menuitem_flashlight</item>
</string-array>
<string-array name="pref_miband6_shortcuts">
@ -504,6 +507,7 @@
<item>@string/menuitem_cycles</item>
<item>@string/menuitem_spo2</item>
<item>@string/menuitem_breathing</item>
<item>@string/menuitem_flashlight</item>
</string-array>
<string-array name="pref_miband6_shortcuts_values">
@ -527,6 +531,7 @@
<item>@string/p_menuitem_cycles</item>
<item>@string/p_menuitem_spo2</item>
<item>@string/p_menuitem_breathing</item>
<item>@string/p_menuitem_flashlight</item>
</string-array>
<string-array name="pref_miband6_shortcuts_default">

View File

@ -923,6 +923,7 @@
<string name="menuitem_widgets">Widgets</string>
<string name="menuitem_temperature">Temperature</string>
<string name="menuitem_barometer">Barometer</string>
<string name="menuitem_flashlight">Flashlight</string>
<string name="watch9_time_minutes">Minutes:</string>
<string name="watch9_time_hours">Hours:</string>
<string name="watch9_time_seconds">Seconds:</string>

View File

@ -54,6 +54,7 @@
<item name="p_menuitem_widgets" type="string">widgets</item>
<item name="p_menuitem_temperature" type="string">temperature</item>
<item name="p_menuitem_barometer" type="string">barometer</item>
<item name="p_menuitem_flashlight" type="string">flashlight</item>
<!-- currently used for sounds -->
<item name="p_menuitem_button" type="string">button</item>