Update DeviceManager after deleting a device
parent
56d8a49d5b
commit
27c83604d3
|
@ -302,7 +302,8 @@ public class ControlCenter extends GBActivity {
|
||||||
if (selectedDevice != null) {
|
if (selectedDevice != null) {
|
||||||
showDeleteDeviceDialog(selectedDevice);
|
showDeleteDeviceDialog(selectedDevice);
|
||||||
selectedDevice = null;
|
selectedDevice = null;
|
||||||
refreshPairedDevices();
|
Intent refreshIntent = new Intent(DeviceManager.ACTION_REFRESH_DEVICELIST);
|
||||||
|
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(refreshIntent);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue