Notify cancel group

This commit is contained in:
M66B
2025-03-16 16:05:22 +01:00
parent 2e0da8a263
commit 58a6dd710e

View File

@@ -101,7 +101,7 @@ public class ServiceUI extends IntentService {
try {
String[] parts = action.split(":");
long id = (parts.length > 1 ? Long.parseLong(parts[1]) : -1);
long group = intent.getLongExtra("group", -1);
long group = intent.getLongExtra("group", 0);
switch (parts[0]) {
case "clear":
@@ -216,7 +216,7 @@ public class ServiceUI extends IntentService {
private void cancel(long group, long id) {
// https://issuetracker.google.com/issues/159152393
String tag = "unseen." + group + ":" + id;
String tag = "unseen." + group + "." + id;
NotificationManager nm = Helper.getSystemService(this, NotificationManager.class);
nm.cancel(tag, NotificationHelper.NOTIFICATION_TAGGED);