Merge "Remove badge info from map when count is 0." into ub-launcher3-dorval
This commit is contained in:
commit
0402efbad8
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user