From 13af55bd2ed9b87e2da3681728a5d528cb6d69a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 12 Aug 2023 13:00:45 +0100 Subject: [PATCH] Zepp OS: Add Zepp Coach display item and shortcut card --- .../gadgetbridge/service/devices/huami/Huami2021MenuType.java | 1 + .../huami/zeppos/services/ZeppOsShortcutCardsService.java | 1 + app/src/main/res/values/arrays.xml | 4 ++++ app/src/main/res/values/strings.xml | 1 + 4 files changed, 7 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021MenuType.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021MenuType.java index d310a3234..759edb375 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021MenuType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/Huami2021MenuType.java @@ -57,6 +57,7 @@ public class Huami2021MenuType { put("00000038", "pomodoro"); put("0000003E", "todo"); put("0000003F", "mi_ai"); + put("00000046", "zepp_coach"); put("00000041", "barometer"); put("00000042", "voice_memos"); put("00000044", "sun_moon"); diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/zeppos/services/ZeppOsShortcutCardsService.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/zeppos/services/ZeppOsShortcutCardsService.java index a4506d6e4..32ac17ba4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/zeppos/services/ZeppOsShortcutCardsService.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/zeppos/services/ZeppOsShortcutCardsService.java @@ -81,6 +81,7 @@ public class ZeppOsShortcutCardsService extends AbstractZeppOsService { ONE_TAP_MEASURING("22", "1"), BREATHING("24", "1"), STOPWATCH("25", "1"), + ZEPP_COACH("27", "1"), RECOMMENDATION("28", "1"), ; diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index e1063f3d6..7be5e3efd 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -826,6 +826,7 @@ @string/menuitem_wechat_pay @string/menuitem_cards @string/menuitem_mi_ai + @string/menuitem_zepp_coach @string/menuitem_more @@ -872,6 +873,7 @@ wechat_pay cards mi_ai + zepp_coach more @@ -902,6 +904,7 @@ @string/menuitem_breathing @string/menuitem_stopwatch @string/menuitem_recommendation + @string/menuitem_zepp_coach @@ -930,6 +933,7 @@ breathing stopwatch recommendation + zepp_coach diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9f71ec49c..628e57f1c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1371,6 +1371,7 @@ Total workout VO₂ Max Recommendation + Zepp Coach Breathing Cycle Tracking Alarm