Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0402efba authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Remove badge info from map when count is 0." into ub-launcher3-dorval

parents 372fadc9 ff7364a8
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -75,6 +75,9 @@ public class PopupDataProvider implements NotificationListener.NotificationsChan
            notificationWasAddedOrRemoved = shouldBeFilteredOut
            notificationWasAddedOrRemoved = shouldBeFilteredOut
                    ? badgeInfo.removeNotificationKey(notificationKey)
                    ? badgeInfo.removeNotificationKey(notificationKey)
                    : badgeInfo.addNotificationKeyIfNotExists(notificationKey);
                    : badgeInfo.addNotificationKeyIfNotExists(notificationKey);
            if (badgeInfo.getNotificationCount() == 0) {
                mPackageUserToBadgeInfos.remove(postedPackageUserKey);
            }
        }
        }
        updateLauncherIconBadges(Utilities.singletonHashSet(postedPackageUserKey),
        updateLauncherIconBadges(Utilities.singletonHashSet(postedPackageUserKey),
                notificationWasAddedOrRemoved);
                notificationWasAddedOrRemoved);