1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

Garmin Forerunner 245 Music: Initial support

This commit is contained in:
José Rebelo 2024-09-16 20:28:00 +01:00
parent bbe5dcffb0
commit e5b91d3ac3
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,24 @@
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 GarminForerunner245MusicCoordinator extends GarminCoordinator {
@Override
public boolean isExperimental() {
// https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3986
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Forerunner 245 Music$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_forerunner_245_music;
}
}

View File

@ -64,6 +64,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminF
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner165Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner245Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner245MusicCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner255Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner255MusicCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner255SCoordinator;
@ -400,6 +401,7 @@ public enum DeviceType {
GARMIN_FENIX_7_PRO(GarminFenix7ProCoordinator.class),
GARMIN_FORERUNNER_165(GarminForerunner165Coordinator.class),
GARMIN_FORERUNNER_245(GarminForerunner245Coordinator.class),
GARMIN_FORERUNNER_245_MUSIC(GarminForerunner245MusicCoordinator.class),
GARMIN_FORERUNNER_255(GarminForerunner255Coordinator.class),
GARMIN_FORERUNNER_255_MUSIC(GarminForerunner255MusicCoordinator.class),
GARMIN_FORERUNNER_255S(GarminForerunner255SCoordinator.class),

View File

@ -1731,6 +1731,7 @@
<string name="devicetype_garmin_instinct_crossover">Garmin Instinct Crossover</string>
<string name="devicetype_garmin_forerunner_165">Garmin Forerunner 165</string>
<string name="devicetype_garmin_forerunner_245">Garmin Forerunner 245</string>
<string name="devicetype_garmin_forerunner_245_music">Garmin Forerunner 245 Music</string>
<string name="devicetype_garmin_forerunner_255">Garmin Forerunner 255</string>
<string name="devicetype_garmin_forerunner_255_music">Garmin Forerunner 255 Music</string>
<string name="devicetype_garmin_forerunner_255s">Garmin Forerunner 255S</string>