From 82a0e68de8b3e813288d3bb0021528977eaef705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Mon, 23 Dec 2024 17:35:34 +0000 Subject: [PATCH] Garmin Fenix 6X Pro Solar: Initial support (#4416) --- .../GarminFenix6XProSolarCoordinator.java | 18 ++++++++++++++++++ .../gadgetbridge/model/DeviceType.java | 2 ++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 21 insertions(+) create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6XProSolarCoordinator.java diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6XProSolarCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6XProSolarCoordinator.java new file mode 100644 index 000000000..ae06715bd --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6XProSolarCoordinator.java @@ -0,0 +1,18 @@ +package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix; + +import java.util.regex.Pattern; + +import nodomain.freeyourgadget.gadgetbridge.R; +import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator; + +public class GarminFenix6XProSolarCoordinator extends GarminCoordinator { + @Override + protected Pattern getSupportedDeviceName() { + return Pattern.compile("^fenix 6X Pro Solar$"); + } + + @Override + public int getDeviceNameResource() { + return R.string.devicetype_garmin_fenix_6x_pro_solar; + } +} 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 b840e756a..3ce006b0e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -67,6 +67,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminF import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SProCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SSapphireCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator; +import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6XProSolarCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7ProCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7SCoordinator; @@ -447,6 +448,7 @@ public enum DeviceType { GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class), GARMIN_FENIX_6S_PRO(GarminFenix6SProCoordinator.class), GARMIN_FENIX_6S_SAPPHIRE(GarminFenix6SSapphireCoordinator.class), + GARMIN_FENIX_6X_PRO_SOLAR(GarminFenix6XProSolarCoordinator.class), GARMIN_FENIX_7(GarminFenix7Coordinator.class), GARMIN_FENIX_7S(GarminFenix7SCoordinator.class), GARMIN_FENIX_7X(GarminFenix7XCoordinator.class), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ae5ddf6a4..f58c3d4cb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1753,6 +1753,7 @@ Garmin Fenix 6 Sapphire Garmin Fenix 6S Pro Garmin Fenix 6S Sapphire + Garmin Fenix 6X Pro Solar Garmin Fenix 7 Garmin Fenix 7S Garmin Fenix 7X