This commit is contained in:
Andreas Shimokawa 2016-07-05 21:47:51 +02:00
parent 9ae69eac55
commit 43f95aee9c
1 changed files with 4 additions and 2 deletions

View File

@ -72,8 +72,10 @@ public class ControlCenter extends GBActivity {
case DeviceManager.ACTION_DEVICES_CHANGED:
refreshPairedDevices();
GBDevice selectedDevice = deviceManager.getSelectedDevice();
refreshBusyState(selectedDevice);
enableSwipeRefresh(selectedDevice);
if (selectedDevice != null) {
refreshBusyState(selectedDevice);
enableSwipeRefresh(selectedDevice);
}
break;
}
}