[app] don't cancel notification before posting it

otherwise notifications keep flickering.

(cherry picked from commit 02cfd45d4664934d434092ff33ae73605dbdc2d0)
This commit is contained in:
Torsten Grote committed 2023-06-01 13:57:20 -03:00
1 parent 55db6b6bf2
commit b76c5a5f0b
1 file changed
-2
@@ -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);
}