From 16b4bfd0e7481e735711a1f379be1ae5b3b2f9bd Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 27 Nov 2016 10:38:16 +0100 Subject: [PATCH] Pebble LE: also return to control center if successfully initialized --- .../gadgetbridge/devices/pebble/PebblePairingActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java index c221ef9f..2cf3b545 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java @@ -46,7 +46,7 @@ public class PebblePairingActivity extends GBActivity { if (GBDevice.ACTION_DEVICE_CHANGED.equals(intent.getAction())) { GBDevice device = intent.getParcelableExtra(GBDevice.EXTRA_DEVICE); LOG.debug("pairing activity: device changed: " + device); - if (macAddress.equals(device.getAddress())) { + if (macAddress.equals(device.getAddress()) || macAddress.equals(device.getVolatileAddress())) { if (device.isInitialized()) { pairingFinished(true); } else if (device.isConnecting() || device.isInitializing()) {