Xiaomi-protobuf: Keep notification IDs on reconnection (#6265)

Otherwise we stop being able to remove notifications.
This commit is contained in:
José Rebelo
2026-06-13 17:10:01 +01:00
parent 8a94075274
commit 5e9e0c05e2
@@ -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();