From 983b7352cb23b2ed69ab7d0220177662082bd509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 10 Feb 2024 12:46:55 +0000 Subject: [PATCH] Galaxy Buds2 Pro: Fix recognition of some versions Not all earbuds use "Galaxy" in the name, apparently. Fixes #3569 --- .../devices/galaxy_buds/GalaxyBuds2ProDeviceCoordinator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/galaxy_buds/GalaxyBuds2ProDeviceCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/galaxy_buds/GalaxyBuds2ProDeviceCoordinator.java index 82c5162e4..9579a2962 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/galaxy_buds/GalaxyBuds2ProDeviceCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/galaxy_buds/GalaxyBuds2ProDeviceCoordinator.java @@ -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