Update DeviceManager after deleting a device

This commit is contained in:
cpfeiffer 2016-09-30 20:17:20 +02:00
parent 56d8a49d5b
commit 27c83604d3
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ public class ControlCenter extends GBActivity {
if (selectedDevice != null) {
showDeleteDeviceDialog(selectedDevice);
selectedDevice = null;
refreshPairedDevices();
Intent refreshIntent = new Intent(DeviceManager.ACTION_REFRESH_DEVICELIST);
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(refreshIntent);
}
return true;
default: