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

Commit ff7364a8 authored by Tony's avatar Tony
Browse files

Remove badge info from map when count is 0.

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