mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Xiaomi-protobuf: Keep notification IDs on reconnection (#6265)
Otherwise we stop being able to remove notifications.
This commit is contained in:
+1
-3
@@ -92,9 +92,7 @@ public class XiaomiNotificationService extends AbstractXiaomiService implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
mPackages.clear();
|
// We intentionally do not clear the queues, so that we don't lose track if the device briefly loses connection
|
||||||
mNotificationPackageName.clear();
|
|
||||||
mNotificationKey.clear();
|
|
||||||
|
|
||||||
getSupport().sendCommand("get screen on on notifications", COMMAND_TYPE, CMD_SCREEN_ON_ON_NOTIFICATIONS_GET);
|
getSupport().sendCommand("get screen on on notifications", COMMAND_TYPE, CMD_SCREEN_ON_ON_NOTIFICATIONS_GET);
|
||||||
requestCannedMessages();
|
requestCannedMessages();
|
||||||
|
|||||||
Reference in New Issue
Block a user