1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-22 23:57:33 +01:00

Garmin: Match exacted supported device names

This commit is contained in:
José Rebelo 2024-05-30 18:51:33 +01:00
parent 15f922276b
commit 5e9f5068ad
17 changed files with 17 additions and 17 deletions

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminForerunner245Coordinator extends GarminCoordinator { public class GarminForerunner245Coordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Forerunner 245"); return Pattern.compile("^Forerunner 245$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminInstinct2SCoordinator extends GarminCoordinator { public class GarminInstinct2SCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct 2S"); return Pattern.compile("^Instinct 2S$");
} }
@Override @Override

View File

@ -9,7 +9,7 @@ import java.util.regex.Pattern;
public class GarminInstinct2SolarCoordinator extends GarminCoordinator { public class GarminInstinct2SolarCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct 2 Solar"); return Pattern.compile("^Instinct 2 Solar$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminInstinct2SolTacCoordinator extends GarminCoordinator { public class GarminInstinct2SolTacCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct 2 SolTac"); return Pattern.compile("^Instinct 2 SolTac$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminInstinct2SSolarCoordinator extends GarminCoordinator { public class GarminInstinct2SSolarCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct 2S Solar"); return Pattern.compile("^Instinct 2S Solar$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminInstinct2XSolarCoordinator extends GarminCoordinator { public class GarminInstinct2XSolarCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct 2X Sol"); return Pattern.compile("^Instinct 2X Sol$");
} }
@Override @Override

View File

@ -9,7 +9,7 @@ import java.util.regex.Pattern;
public class GarminInstinctCrossoverCoordinator extends GarminCoordinator { public class GarminInstinctCrossoverCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct Crossover"); return Pattern.compile("^Instinct Crossover$");
} }
@Override @Override

View File

@ -9,7 +9,7 @@ import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class GarminInstinctSolarCoordinator extends GarminCoordinator { public class GarminInstinctSolarCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Instinct Solar"); return Pattern.compile("^Instinct Solar$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminSwim2Coordinator extends GarminCoordinator { public class GarminSwim2Coordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Swim 2"); return Pattern.compile("^Swim 2$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVenu2PlusCoordinator extends GarminCoordinator { public class GarminVenu2PlusCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Venu 2 Plus"); return Pattern.compile("^Venu 2 Plus$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVenu3Coordinator extends GarminCoordinator { public class GarminVenu3Coordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("Venu 3"); return Pattern.compile("^Venu 3$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVivoActive4Coordinator extends GarminCoordinator { public class GarminVivoActive4Coordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("vívoactive 4"); return Pattern.compile("^vívoactive 4$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVivoActive4SCoordinator extends GarminCoordinator { public class GarminVivoActive4SCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("vívoactive 4S"); return Pattern.compile("^vívoactive 4S$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVivoActive5Coordinator extends GarminCoordinator { public class GarminVivoActive5Coordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("vívoactive 5"); return Pattern.compile("^vívoactive 5$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVivomoveHrCoordinator extends GarminCoordinator { public class GarminVivomoveHrCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("vívomove HR"); return Pattern.compile("^vívomove HR$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVivomoveStyleCoordinator extends GarminCoordinator { public class GarminVivomoveStyleCoordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("vívomove Style"); return Pattern.compile("^vívomove Style$");
} }
@Override @Override

View File

@ -8,7 +8,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVivosmart5Coordinator extends GarminCoordinator { public class GarminVivosmart5Coordinator extends GarminCoordinator {
@Override @Override
protected Pattern getSupportedDeviceName() { protected Pattern getSupportedDeviceName() {
return Pattern.compile("vívosmart 5"); return Pattern.compile("^vívosmart 5$");
} }
@Override @Override