mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
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:
|
||||
refreshPairedDevices();
|
||||
GBDevice selectedDevice = deviceManager.getSelectedDevice();
|
||||
if (selectedDevice != null) {
|
||||
refreshBusyState(selectedDevice);
|
||||
enableSwipeRefresh(selectedDevice);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user