mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin Vívoactive HR: Initial support
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivoactive;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
|
||||
|
||||
public class GarminVivoActiveHrCoordinator extends GarminCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^vívoactive HR$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_garmin_vivoactive_hr;
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,7 @@ package nodomain.freeyourgadget.gadgetbridge.model;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.DeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.UnknownDeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivoactive.GarminVivoActiveHrCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.watches.AmazfitBip6Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.onemoresonoflow.OneMoreSonoFlowCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.asteroidos.AsteroidOSDeviceCoordinator;
|
||||
@@ -527,6 +528,7 @@ public enum DeviceType {
|
||||
GARMIN_VIVOACTIVE_4(GarminVivoActive4Coordinator.class),
|
||||
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
|
||||
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),
|
||||
GARMIN_VIVOACTIVE_HR(GarminVivoActiveHrCoordinator.class),
|
||||
GARMIN_VIVOSMART_5(GarminVivosmart5Coordinator.class),
|
||||
GARMIN_VIVOSPORT(GarminVivosportCoordinator.class),
|
||||
GREE_AC(GreeAcCoordinator.class),
|
||||
|
||||
@@ -1856,6 +1856,7 @@
|
||||
<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_5">Garmin Vívoactive 5</string>
|
||||
<string name="devicetype_garmin_vivoactive_hr">Garmin Vívoactive HR</string>
|
||||
<string name="devicetype_garmin_vivosmart_5">Garmin Vívosmart 5</string>
|
||||
<string name="devicetype_garmin_vivosport">Garmin Vívosport</string>
|
||||
<string name="devicetype_gree_ac">Gree Air Conditioner</string>
|
||||
|
||||
Reference in New Issue
Block a user