1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

Garmin Fenix 5X Plus: Experimental support

This commit is contained in:
José Rebelo 2024-08-26 08:49:31 +01:00
parent f4551e7cba
commit ae1cc16a12
3 changed files with 27 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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.epix.GarminEpixProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5Coordinator; 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.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.GarminFenix6Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7ProCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7ProCoordinator;
@ -386,6 +387,7 @@ public enum DeviceType {
GARMIN_EPIX_PRO(GarminEpixProCoordinator.class), GARMIN_EPIX_PRO(GarminEpixProCoordinator.class),
GARMIN_FENIX_5(GarminFenix5Coordinator.class), GARMIN_FENIX_5(GarminFenix5Coordinator.class),
GARMIN_FENIX_5_PLUS(GarminFenix5PlusCoordinator.class), GARMIN_FENIX_5_PLUS(GarminFenix5PlusCoordinator.class),
GARMIN_FENIX_5X_PLUS(GarminFenix5XPlusCoordinator.class),
GARMIN_FENIX_6(GarminFenix6Coordinator.class), GARMIN_FENIX_6(GarminFenix6Coordinator.class),
GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class), GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class),
GARMIN_FENIX_7S(GarminFenix7SCoordinator.class), GARMIN_FENIX_7S(GarminFenix7SCoordinator.class),

View File

@ -1697,6 +1697,7 @@
<string name="devicetype_garmin_epix_pro">Garmin Epix Pro</string> <string name="devicetype_garmin_epix_pro">Garmin Epix Pro</string>
<string name="devicetype_garmin_fenix_5">Garmin Fenix 5</string> <string name="devicetype_garmin_fenix_5">Garmin Fenix 5</string>
<string name="devicetype_garmin_fenix_5_plus">Garmin Fenix 5 Plus</string> <string name="devicetype_garmin_fenix_5_plus">Garmin Fenix 5 Plus</string>
<string name="devicetype_garmin_fenix_5x_plus">Garmin Fenix 5X Plus</string>
<string name="devicetype_garmin_fenix_6">Garmin Fenix 6</string> <string name="devicetype_garmin_fenix_6">Garmin Fenix 6</string>
<string name="devicetype_garmin_fenix_6_sapphire">Garmin Fenix 6 Sapphire</string> <string name="devicetype_garmin_fenix_6_sapphire">Garmin Fenix 6 Sapphire</string>
<string name="devicetype_garmin_fenix_7s">Garmin Fenix 7S</string> <string name="devicetype_garmin_fenix_7s">Garmin Fenix 7S</string>