diff --git a/src/com/android/launcher3/popup/PopupDataProvider.java b/src/com/android/launcher3/popup/PopupDataProvider.java index ee2930f191..f0ccb1bb66 100644 --- a/src/com/android/launcher3/popup/PopupDataProvider.java +++ b/src/com/android/launcher3/popup/PopupDataProvider.java @@ -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);