fix NPE
This commit is contained in:
parent
9ae69eac55
commit
43f95aee9c
|
@ -72,8 +72,10 @@ public class ControlCenter extends GBActivity {
|
||||||
case DeviceManager.ACTION_DEVICES_CHANGED:
|
case DeviceManager.ACTION_DEVICES_CHANGED:
|
||||||
refreshPairedDevices();
|
refreshPairedDevices();
|
||||||
GBDevice selectedDevice = deviceManager.getSelectedDevice();
|
GBDevice selectedDevice = deviceManager.getSelectedDevice();
|
||||||
refreshBusyState(selectedDevice);
|
if (selectedDevice != null) {
|
||||||
enableSwipeRefresh(selectedDevice);
|
refreshBusyState(selectedDevice);
|
||||||
|
enableSwipeRefresh(selectedDevice);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue