[app] don't cancel notification before posting it

otherwise notifications keep flickering.

(cherry picked from commit 02cfd45d4664934d434092ff33ae73605dbdc2d0)
This commit is contained in:
Torsten Grote
2023-04-18 11:30:25 -03:00
parent 55db6b6bf2
commit b76c5a5f0b

View File

@@ -202,7 +202,6 @@ public class NotificationHelper {
} else if (installed.size() == 1) {
notification = createInstalledNotification(entry);
notificationManager.cancel(entry.getCanonicalUrl(), NOTIFY_ID_UPDATES);
notificationManager.cancel(entry.getCanonicalUrl(), NOTIFY_ID_INSTALLED);
notificationManager.notify(GROUP_INSTALLED, NOTIFY_ID_INSTALLED, notification);
}
} else {
@@ -212,7 +211,6 @@ public class NotificationHelper {
notificationManager.notify(entry.getCanonicalUrl(), NOTIFY_ID_UPDATES, notification);
} else if (updates.size() == 1) {
notification = createUpdateNotification(entry);
notificationManager.cancel(entry.getCanonicalUrl(), NOTIFY_ID_UPDATES);
notificationManager.cancel(entry.getCanonicalUrl(), NOTIFY_ID_INSTALLED);
notificationManager.notify(GROUP_UPDATES, NOTIFY_ID_UPDATES, notification);
}