mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Galaxy Buds2 Pro: Fix recognition of some versions
Not all earbuds use "Galaxy" in the name, apparently. Fixes #3569
This commit is contained in:
parent
88f3cc4fd0
commit
983b7352cb
@ -30,7 +30,7 @@ import nodomain.freeyourgadget.gadgetbridge.model.DeviceType;
|
|||||||
public class GalaxyBuds2ProDeviceCoordinator extends GalaxyBudsGenericCoordinator {
|
public class GalaxyBuds2ProDeviceCoordinator extends GalaxyBudsGenericCoordinator {
|
||||||
@Override
|
@Override
|
||||||
protected Pattern getSupportedDeviceName() {
|
protected Pattern getSupportedDeviceName() {
|
||||||
return Pattern.compile("Galaxy Buds2 Pro.*");
|
return Pattern.compile("^(Galaxy )?Buds2 Pro.*");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user