1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-18 02:50:21 +02: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:
José Rebelo 2024-02-10 12:46:55 +00:00
parent 88f3cc4fd0
commit 983b7352cb

View File

@ -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