mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-03 13:37:32 +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 {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("Galaxy Buds2 Pro.*");
|
||||
return Pattern.compile("^(Galaxy )?Buds2 Pro.*");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user