Pebble LE: also return to control center if successfully initialized

This commit is contained in:
Andreas Shimokawa 2016-11-27 10:38:16 +01:00
parent 723ad53588
commit 16b4bfd0e7
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {