From c67ec5f71caa753e61cfb0980af6e78ec7bed8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?frederic=20lesur=20LESUR=E3=80=80Frederic?= Date: Thu, 27 Aug 2020 09:17:17 +0900 Subject: [PATCH] Change id of Lemfo SG2 to 44 Change name from SG2 to Lemfo SG2 --- .../gadgetbridge/devices/hplus/SG2Coordinator.java | 8 ++++++-- .../freeyourgadget/gadgetbridge/model/DeviceType.java | 2 +- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hplus/SG2Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hplus/SG2Coordinator.java index 96f3a76be..b795e27bb 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hplus/SG2Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hplus/SG2Coordinator.java @@ -17,7 +17,7 @@ package nodomain.freeyourgadget.gadgetbridge.devices.hplus; /* -* @author Alejandro Ladera Chamorro <11555126+tiparega@users.noreply.github.com> +* @author Frederic LESUR contact@memiks.fr; */ @@ -26,7 +26,7 @@ import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate; import nodomain.freeyourgadget.gadgetbridge.model.DeviceType; /** - * Pseudo Coordinator for the SG2, a sub type of the HPLUS devices + * Pseudo Coordinator for the Lemfo SG2, a sub type of the HPLUS devices */ public class SG2Coordinator extends HPlusCoordinator { @@ -51,4 +51,8 @@ public class SG2Coordinator extends HPlusCoordinator { return "Lemfo"; } + @Override + public boolean supportsWeather() { + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java index 662191a57..e3080ff83 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -52,6 +52,7 @@ public enum DeviceType { MAKIBESF68(41, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_makibes_f68), EXRIZUK8(42, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_exrizu_k8), Q8(43, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_q8), + SG2(44, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_sg2), NO1F1(50, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_no1_f1), TECLASTH30(60, R.drawable.ic_device_h30_h10, R.drawable.ic_device_h30_h10_disabled, R.string.devicetype_teclast_h30), Y5(61, R.drawable.ic_device_h30_h10, R.drawable.ic_device_roidmi_disabled, R.string.devicetype_y5), @@ -74,7 +75,6 @@ public enum DeviceType { MIJIA_LYWSD02(200, R.drawable.ic_device_pebble, R.drawable.ic_device_pebble_disabled, R.string.devicetype_mijia_lywsd02), ITAG(250, R.drawable.ic_device_itag, R.drawable.ic_device_itag_disabled, R.string.devicetype_itag), VIBRATISSIMO(300, R.drawable.ic_device_lovetoy, R.drawable.ic_device_lovetoy_disabled, R.string.devicetype_vibratissimo), - SG2(310, R.drawable.ic_device_hplus, R.drawable.ic_device_hplus_disabled, R.string.devicetype_sg2), TEST(1000, R.drawable.ic_device_default, R.drawable.ic_device_default_disabled, R.string.devicetype_test); private final int key; @DrawableRes diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7c7c85254..eaef19ebf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -770,7 +770,7 @@ Gadgetbridge notifications Gadgetbridge notifications high priority Amazfit GTS - SG2 + Lemfo SG2 Alipay (Shortcut) Weather (Shortcut)