1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

Zepp OS: Add some missing control center items

This commit is contained in:
José Rebelo 2024-01-10 19:47:25 +00:00
parent 704875c3c2
commit 823bd829ce
3 changed files with 23 additions and 14 deletions

View File

@ -31,20 +31,19 @@ public class Huami2021MenuType {
put("00000003", "workout");
put("00000004", "weather");
put("00000009", "alarm");
put("00000010", "cards");
put("0000000A", "takephoto");
put("0000000B", "music");
put("0000000C", "stopwatch");
put("0000000D", "countdown");
put("0000000E", "findphone");
put("0000000F", "mutephone");
put("00000010", "cards");
put("00000011", "alipay");
put("00000013", "settings");
put("00000014", "workout_history");
put("00000015", "eventreminder");
put("00000016", "compass");
put("00000019", "pai");
put("00000031", "wechat_pay");
put("0000001A", "worldclock");
put("0000001C", "stress");
put("0000001D", "female_health");
@ -54,21 +53,22 @@ public class Huami2021MenuType {
put("00000024", "spo2");
put("00000025", "phone");
put("00000026", "events");
put("00000031", "wechat_pay");
put("00000033", "breathing");
put("00000038", "pomodoro");
put("00000039", "alexa2");
put("0000003B", "thermometer");
put("0000003E", "todo");
put("0000003F", "mi_ai");
put("00000046", "zepp_coach");
put("00000049", "body_composition");
put("0000004A", "readiness");
put("0000004C", "zepp_pay");
put("00000041", "barometer");
put("00000042", "voice_memos");
put("00000044", "sun_moon");
put("00000045", "one_tap_measuring");
put("00000046", "zepp_coach");
put("00000047", "membership_cards");
put("00000049", "body_composition");
put("0000004A", "readiness");
put("0000004C", "zepp_pay");
put("00000100", "alexa");
put("00000101", "offline_voice");
put("00000102", "flashlight");
@ -112,20 +112,26 @@ public class Huami2021MenuType {
}};
public static final Map<String, String> controlCenterNameLookup = new HashMap<String, String>() {{
put("00000007", "battery");
put("00000000", "flashlight");
put("00000001", "brightness");
put("00000002", "lockscreen");
put("00000003", "dnd");
put("00000004", "sleep");
put("00000008", "theater_mode");
put("0000000D", "calendar");
put("00000005", "findphone");
put("00000006", "volume");
put("00000007", "battery");
put("00000008", "theater_mode");
put("00000009", "screen_always_lit");
put("00000001", "brightness");
put("00000013", "settings");
put("00000000", "flashlight");
put("0000000A", "bluetooth");
put("0000000B", "wifi");
put("00000002", "lockscreen");
put("00000005", "findphone");
put("0000000D", "calendar");
put("00000012", "alarm");
put("00000013", "settings");
put("00000014", "buzzer_intensity");
put("00000015", "barometer");
put("00000016", "compass");
put("00000017", "countdown");
put("00000018", "stopwatch");
put("00000019", "eject_water");
put("0000001A", "headphone");
}};

View File

@ -1032,6 +1032,7 @@
<item>@string/menuitem_findphone</item>
<item>@string/menuitem_eject_water</item>
<item>@string/menuitem_headphone</item>
<item>@string/menuitem_buzzer_intensity</item>
</string-array>
<string-array name="pref_huami2021_control_center_values">
@ -1051,6 +1052,7 @@
<item>findphone</item>
<item>eject_water</item>
<item>headphone</item>
<item>buzzer_intensity</item>
</string-array>
<string-array name="pref_miband5_workout_activity_types">

View File

@ -1543,6 +1543,7 @@
<string name='menuitem_lockscreen'>Lockscreen</string>
<string name='menuitem_eject_water'>Eject Water</string>
<string name='menuitem_headphone'>Headphone</string>
<string name='menuitem_buzzer_intensity'>Buzzer Intensity</string>
<string name="menuitem_unknown_app">Unknown (%s)</string>
<string name="menuitem_unsupported">[UNSUPPORTED] %s</string>
<string name="zepp_os_watchface_red_fantasy">Red Fantasy</string>