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
|
||||
public void initialize() {
|
||||
mPackages.clear();
|
||||
mNotificationPackageName.clear();
|
||||
mNotificationKey.clear();
|
||||
// We intentionally do not clear the queues, so that we don't lose track if the device briefly loses connection
|
||||
|
||||
getSupport().sendCommand("get screen on on notifications", COMMAND_TYPE, CMD_SCREEN_ON_ON_NOTIFICATIONS_GET);
|
||||
requestCannedMessages();
|
||||
|
||||
Reference in New Issue
Block a user