mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Disconnect all devices that are not NOT_CONNECTED
Disconnect devices in all states except GBDevice.State.NOT_CONNECTED. This should fix devices getting stuck in GBDevice.State.CONNECTING state when Bluetooth is switched off.
This commit is contained in:
committed by
José Rebelo
parent
9e10da062e
commit
5bcebe9590
+2
@@ -598,6 +598,8 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
|
||||
}
|
||||
notifCache.removeAll(toRemove);
|
||||
}
|
||||
} else if (action.equals(ACTION_DISCONNECT) && device.getState() != GBDevice.State.NOT_CONNECTED) {
|
||||
targetedDevices.add(device);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user