diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/forerunner/GarminForerunner265SCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/forerunner/GarminForerunner265SCoordinator.java new file mode 100644 index 000000000..a07a40073 --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/forerunner/GarminForerunner265SCoordinator.java @@ -0,0 +1,19 @@ +package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner; + +import java.util.regex.Pattern; + +import nodomain.freeyourgadget.gadgetbridge.R; +import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator; + +public class GarminForerunner265SCoordinator extends GarminCoordinator { + @Override + protected Pattern getSupportedDeviceName() { + // #4131 - including variants of the name just in case + return Pattern.compile("^(Garmin )?Forerunner 265[sS]$"); + } + + @Override + public int getDeviceNameResource() { + return R.string.devicetype_garmin_forerunner_265s; + } +} 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 2d3596fc9..b62e38c4e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -71,6 +71,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.Ga import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner255SCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner255SMusicCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner265Coordinator; +import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner265SCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner955Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner965Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinct2SCoordinator; @@ -411,6 +412,7 @@ public enum DeviceType { GARMIN_FORERUNNER_255S(GarminForerunner255SCoordinator.class), GARMIN_FORERUNNER_255S_MUSIC(GarminForerunner255SMusicCoordinator.class), GARMIN_FORERUNNER_265(GarminForerunner265Coordinator.class), + GARMIN_FORERUNNER_265S(GarminForerunner265SCoordinator.class), GARMIN_FORERUNNER_955(GarminForerunner955Coordinator.class), GARMIN_FORERUNNER_965(GarminForerunner965Coordinator.class), GARMIN_SWIM_2(GarminSwim2Coordinator.class), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c8a42363c..265d30b32 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1743,6 +1743,7 @@ Garmin Forerunner 255S Garmin Forerunner 255S Music Garmin Forerunner 265 + Garmin Forerunner 265S Garmin Forerunner 955 Garmin Forerunner 965 Garmin Swim 2