mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 10:55:09 +01:00
Notify cancel group
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user