From 6c0a2764414f5081bb7dcb040299512634e6a0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sun, 30 Apr 2023 11:55:34 +0100 Subject: [PATCH] Zepp OS: Add code for AQI shortcut card --- .../huami/zeppos/services/ZeppOsShortcutCardsService.java | 1 + app/src/main/res/values/arrays.xml | 2 ++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 4 insertions(+) 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 d48f25b9c..d6cc75c95 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 @@ -58,6 +58,7 @@ public class ZeppOsShortcutCardsService extends AbstractZeppOsService { public enum ShortcutCard { WEATHER("2", "1"), + AQI("2", "2"), FORECAST("2", "3"), PAI("3", "1"), ALARM("4", "1"), diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index fa2400948..a459e2663 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -876,6 +876,7 @@ @string/menuitem_weather + @string/menuitem_aqi @string/menuitem_forecast @string/menuitem_pai @string/menuitem_alarm @@ -903,6 +904,7 @@ weather + aqi forecast pai alarm diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f1d164216..eadaa3539 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1297,6 +1297,7 @@ Notifications Workout History Weather + Air Quality Index Forecast Last workout Total workout