mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin Forerunner 970: Initial support
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.GarminWatchCoordinator;
|
||||
|
||||
public class GarminForerunner970Coordinator extends GarminWatchCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^Forerunner 970$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_garmin_forerunner_970;
|
||||
}
|
||||
}
|
||||
@@ -137,6 +137,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.Ga
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner945Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner955Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner965Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner970Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinct2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinct2SCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinct2SSolarCoordinator;
|
||||
@@ -744,6 +745,7 @@ public enum DeviceType {
|
||||
GARMIN_FORERUNNER_945(GarminForerunner945Coordinator.class),
|
||||
GARMIN_FORERUNNER_955(GarminForerunner955Coordinator.class),
|
||||
GARMIN_FORERUNNER_965(GarminForerunner965Coordinator.class),
|
||||
GARMIN_FORERUNNER_970(GarminForerunner970Coordinator.class),
|
||||
GARMIN_QUATIX_8(GarminQuatix8Coordinator.class),
|
||||
GARMIN_TACTIX_7(GarminTactix7Coordinator.class),
|
||||
GARMIN_TACTIX_8(GarminTactix8Coordinator.class),
|
||||
|
||||
@@ -2074,6 +2074,7 @@
|
||||
<string name="devicetype_garmin_forerunner_945" translatable="false">Garmin Forerunner 945</string>
|
||||
<string name="devicetype_garmin_forerunner_955" translatable="false">Garmin Forerunner 955</string>
|
||||
<string name="devicetype_garmin_forerunner_965" translatable="false">Garmin Forerunner 965</string>
|
||||
<string name="devicetype_garmin_forerunner_970" translatable="false">Garmin Forerunner 970</string>
|
||||
<string name="devicetype_garmin_swim_2" translatable="false">Garmin Swim 2</string>
|
||||
<string name="devicetype_garmin_vivoactive_3" translatable="false">Garmin Vívoactive 3</string>
|
||||
<string name="devicetype_garmin_vivoactive_4" translatable="false">Garmin Vívoactive 4</string>
|
||||
|
||||
@@ -148,6 +148,7 @@ public class BluetoothNameTest extends TestBase {
|
||||
put("Amazfit Bip 3", DeviceType.AMAZFITBIP3); // #3627
|
||||
put("Xiaomi Band 8 Active 0C09", DeviceType.MIBAND8ACTIVE); // #3614
|
||||
put("UAT-4261", DeviceType.GARMIN_VENU_3S); // #3602
|
||||
put("Forerunner 970", DeviceType.GARMIN_FORERUNNER_970); // #6320
|
||||
put("Redmi Watch 3 892C", DeviceType.REDMIWATCH3); // #3581
|
||||
put("Redmi Buds 5 Pro", DeviceType.REDMIBUDS5PRO); // #3566
|
||||
put("Redmi Watch 2 C21E", DeviceType.REDMIWATCH2); // #3543
|
||||
|
||||
Reference in New Issue
Block a user