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: 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;
} }
} }