1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Update DeviceManager after deleting a device

This commit is contained in:
cpfeiffer 2016-09-30 20:17:20 +02:00
parent 56d8a49d5b
commit 27c83604d3

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: