mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-22 07:50:19 -04:00
[app] don't cancel notification before posting it
otherwise notifications keep flickering. (cherry picked from commit 02cfd45d4664934d434092ff33ae73605dbdc2d0)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user