mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-26 09:11:37 +02:00
Initial support for Garmin Vivoactive 4
This commit is contained in:
parent
6f9f49aa4a
commit
a0943649bd
@ -0,0 +1,28 @@
|
|||||||
|
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivoactive4;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
|
||||||
|
|
||||||
|
public class GarminVivoActive4Coordinator extends GarminCoordinator {
|
||||||
|
@Override
|
||||||
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
return Pattern.compile("vívoactive 4");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDeviceNameResource() {
|
||||||
|
return R.string.devicetype_garmin_vivoactive_4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean supportsFlashing() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean supportsAgpsUpdates() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
@ -58,6 +58,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2solar.Garmin
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2soltac.GarminInstinct2SolTacCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2soltac.GarminInstinct2SolTacCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinctcrossover.GarminInstinctCrossoverCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinctcrossover.GarminInstinctCrossoverCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.venu3.GarminVenu3Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.venu3.GarminVenu3Coordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivoactive4.GarminVivoActive4Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivoactive4s.GarminVivoActive4SCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivoactive4s.GarminVivoActive4SCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivoactive5.GarminVivoActive5Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivoactive5.GarminVivoActive5Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivomove.GarminVivomoveStyleCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.vivomove.GarminVivomoveStyleCoordinator;
|
||||||
@ -349,6 +350,7 @@ public enum DeviceType {
|
|||||||
GARMIN_INSTINCT_CROSSOVER(GarminInstinctCrossoverCoordinator.class),
|
GARMIN_INSTINCT_CROSSOVER(GarminInstinctCrossoverCoordinator.class),
|
||||||
GARMIN_VIVOMOVE_STYLE(GarminVivomoveStyleCoordinator.class),
|
GARMIN_VIVOMOVE_STYLE(GarminVivomoveStyleCoordinator.class),
|
||||||
GARMIN_VENU_3(GarminVenu3Coordinator.class),
|
GARMIN_VENU_3(GarminVenu3Coordinator.class),
|
||||||
|
GARMIN_VIVOACTIVE_4(GarminVivoActive4Coordinator.class),
|
||||||
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
|
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
|
||||||
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),
|
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),
|
||||||
VIBRATISSIMO(VibratissimoCoordinator.class),
|
VIBRATISSIMO(VibratissimoCoordinator.class),
|
||||||
|
@ -1501,6 +1501,7 @@
|
|||||||
<string name="devicetype_garmin_instinct_crossover">Garmin Instinct Crossover</string>
|
<string name="devicetype_garmin_instinct_crossover">Garmin Instinct Crossover</string>
|
||||||
<string name="devicetype_garmin_forerunner_245">Garmin Forerunner 245</string>
|
<string name="devicetype_garmin_forerunner_245">Garmin Forerunner 245</string>
|
||||||
<string name="devicetype_garmin_swim_2">Garmin Swim 2</string>
|
<string name="devicetype_garmin_swim_2">Garmin Swim 2</string>
|
||||||
|
<string name="devicetype_garmin_vivoactive_4">Garmin Vívoactive 4</string>
|
||||||
<string name="devicetype_garmin_vivoactive_4s">Garmin Vívoactive 4S</string>
|
<string name="devicetype_garmin_vivoactive_4s">Garmin Vívoactive 4S</string>
|
||||||
<string name="devicetype_garmin_vivoactive_5">Garmin Vívoactive 5</string>
|
<string name="devicetype_garmin_vivoactive_5">Garmin Vívoactive 5</string>
|
||||||
<string name="devicetype_vibratissimo">Vibratissimo</string>
|
<string name="devicetype_vibratissimo">Vibratissimo</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user