Pebble LE: also return to control center if successfully initialized
This commit is contained in:
parent
723ad53588
commit
16b4bfd0e7
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue