diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix5XPlusCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix5XPlusCoordinator.java new file mode 100644 index 000000000..537f98b6d --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix5XPlusCoordinator.java @@ -0,0 +1,24 @@ +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 GarminFenix5XPlusCoordinator extends GarminCoordinator { + @Override + public boolean isExperimental() { + // https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3963 + return true; + } + + @Override + protected Pattern getSupportedDeviceName() { + return Pattern.compile("^fenix 5X Plus$"); + } + + @Override + public int getDeviceNameResource() { + return R.string.devicetype_garmin_fenix_5x_plus; + } +} 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 1d9d6b67a..5272f9cb0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -57,6 +57,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDev import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.epix.GarminEpixProCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5PlusCoordinator; +import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5XPlusCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7ProCoordinator; @@ -386,6 +387,7 @@ public enum DeviceType { GARMIN_EPIX_PRO(GarminEpixProCoordinator.class), GARMIN_FENIX_5(GarminFenix5Coordinator.class), GARMIN_FENIX_5_PLUS(GarminFenix5PlusCoordinator.class), + GARMIN_FENIX_5X_PLUS(GarminFenix5XPlusCoordinator.class), GARMIN_FENIX_6(GarminFenix6Coordinator.class), GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class), GARMIN_FENIX_7S(GarminFenix7SCoordinator.class), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 83581ae34..596984b3a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1697,6 +1697,7 @@ Garmin Epix Pro Garmin Fenix 5 Garmin Fenix 5 Plus + Garmin Fenix 5X Plus Garmin Fenix 6 Garmin Fenix 6 Sapphire Garmin Fenix 7S