Garmin Fenix 6X Pro Solar: Initial support (#4416)

This commit is contained in:
José Rebelo 2024-12-23 17:35:34 +00:00
parent b1b4c81857
commit 82a0e68de8
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,18 @@
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 GarminFenix6XProSolarCoordinator extends GarminCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^fenix 6X Pro Solar$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_fenix_6x_pro_solar;
}
}

View File

@ -67,6 +67,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminF
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SSapphireCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6XProSolarCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7ProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7SCoordinator;
@ -447,6 +448,7 @@ public enum DeviceType {
GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class),
GARMIN_FENIX_6S_PRO(GarminFenix6SProCoordinator.class),
GARMIN_FENIX_6S_SAPPHIRE(GarminFenix6SSapphireCoordinator.class),
GARMIN_FENIX_6X_PRO_SOLAR(GarminFenix6XProSolarCoordinator.class),
GARMIN_FENIX_7(GarminFenix7Coordinator.class),
GARMIN_FENIX_7S(GarminFenix7SCoordinator.class),
GARMIN_FENIX_7X(GarminFenix7XCoordinator.class),

View File

@ -1753,6 +1753,7 @@
<string name="devicetype_garmin_fenix_6_sapphire">Garmin Fenix 6 Sapphire</string>
<string name="devicetype_garmin_fenix_6s_pro">Garmin Fenix 6S Pro</string>
<string name="devicetype_garmin_fenix_6s_sapphire">Garmin Fenix 6S Sapphire</string>
<string name="devicetype_garmin_fenix_6x_pro_solar">Garmin Fenix 6X Pro Solar</string>
<string name="devicetype_garmin_fenix_7">Garmin Fenix 7</string>
<string name="devicetype_garmin_fenix_7s">Garmin Fenix 7S</string>
<string name="devicetype_garmin_fenix_7x">Garmin Fenix 7X</string>