1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-27 17:14:55 +02:00

Garmin Vivoactive 3: Initial support

This commit is contained in:
José Rebelo 2024-07-07 22:48:40 +01:00
parent 8253bd8635
commit 8672dcac3c
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,20 @@
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 GarminVivoActive3Coordinator extends GarminCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
// The report on matrix did not include a space, but let's make it
// optional just in case
return Pattern.compile("^vívoactive *3$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_vivoactive_3;
}
}

View File

@ -73,6 +73,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVe
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu2PlusCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu3Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu3SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivoactive.GarminVivoActive3Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivoactive.GarminVivoActive4Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivoactive.GarminVivoActive4SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivoactive.GarminVivoActive5Coordinator;
@ -383,6 +384,7 @@ public enum DeviceType {
GARMIN_VENU_2_PLUS(GarminVenu2PlusCoordinator.class),
GARMIN_VENU_3(GarminVenu3Coordinator.class),
GARMIN_VENU_3S(GarminVenu3SCoordinator.class),
GARMIN_VIVOACTIVE_3(GarminVivoActive3Coordinator.class),
GARMIN_VIVOACTIVE_4(GarminVivoActive4Coordinator.class),
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),

View File

@ -1520,6 +1520,7 @@
<string name="devicetype_garmin_forerunner_255s">Garmin Forerunner 255S</string>
<string name="devicetype_garmin_forerunner_265">Garmin Forerunner 265</string>
<string name="devicetype_garmin_swim_2">Garmin Swim 2</string>
<string name="devicetype_garmin_vivoactive_3">Garmin Vívoactive 3</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_5">Garmin Vívoactive 5</string>