diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/forerunner/GarminForerunner255SMusicCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/forerunner/GarminForerunner255SMusicCoordinator.java new file mode 100644 index 000000000..02e7e7f36 --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/forerunner/GarminForerunner255SMusicCoordinator.java @@ -0,0 +1,18 @@ +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 GarminForerunner255SMusicCoordinator extends GarminCoordinator { + @Override + protected Pattern getSupportedDeviceName() { + return Pattern.compile("^Forerunner 255S Music$"); + } + + @Override + public int getDeviceNameResource() { + return R.string.devicetype_garmin_forerunner_255s_music; + } +} 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 135544187..d308ebf75 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -60,6 +60,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminF import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner245Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner255Coordinator; 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.instinct.GarminInstinct2XSolarCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinctCoordinator; @@ -376,6 +377,7 @@ public enum DeviceType { GARMIN_FORERUNNER_245(GarminForerunner245Coordinator.class), GARMIN_FORERUNNER_255(GarminForerunner255Coordinator.class), GARMIN_FORERUNNER_255S(GarminForerunner255SCoordinator.class), + GARMIN_FORERUNNER_255S_MUSIC(GarminForerunner255SMusicCoordinator.class), GARMIN_FORERUNNER_265(GarminForerunner265Coordinator.class), GARMIN_SWIM_2(GarminSwim2Coordinator.class), GARMIN_INSTINCT(GarminInstinctCoordinator.class), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a35e15fc9..b0af7ba12 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1531,6 +1531,7 @@ Garmin Forerunner 245 Garmin Forerunner 255 Garmin Forerunner 255S + Garmin Forerunner 255S Music Garmin Forerunner 265 Garmin Swim 2 Garmin VĂ­voactive 3