mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
C20: Fix bluetooth name matching on some watches
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ import nodomain.freeyourgadget.gadgetbridge.R;
|
|||||||
public class C20Coordinator extends AbstractMoyoungDeviceCoordinator {
|
public class C20Coordinator extends AbstractMoyoungDeviceCoordinator {
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("^C20$");
|
return Pattern.compile("^C *20$");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+2
@@ -140,6 +140,8 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
|||||||
put("Fit1900", DeviceType.FITPRO);
|
put("Fit1900", DeviceType.FITPRO);
|
||||||
put("M6-4711", DeviceType.FITPRO);
|
put("M6-4711", DeviceType.FITPRO);
|
||||||
put("M4-4711", DeviceType.FITPRO);
|
put("M4-4711", DeviceType.FITPRO);
|
||||||
|
put("C20", DeviceType.C20); // #4070
|
||||||
|
put("C 20", DeviceType.C20); // #5495
|
||||||
}};
|
}};
|
||||||
|
|
||||||
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {
|
for (Map.Entry<String, DeviceType> e : bluetoothNameToExpectedType.entrySet()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user