From b76c5a5f0bdf5ca7d8b26afc22c2bb7dd177d7ec Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 18 Apr 2023 11:30:25 -0300 Subject: [PATCH] [app] don't cancel notification before posting it otherwise notifications keep flickering. (cherry picked from commit 02cfd45d4664934d434092ff33ae73605dbdc2d0) --- app/src/main/java/org/fdroid/fdroid/NotificationHelper.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/NotificationHelper.java b/app/src/main/java/org/fdroid/fdroid/NotificationHelper.java index ea121827f..746fb7b43 100644 --- a/app/src/main/java/org/fdroid/fdroid/NotificationHelper.java +++ b/app/src/main/java/org/fdroid/fdroid/NotificationHelper.java @@ -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); }