Rename "badges" to "dots" where appropriate
This will reduce confusion with the other "badging" concept we use for,
e.g. work profiles. It is also consistent with the external name
"notification dots".
Change-Id: I2a2c9d96dc0d6284eb0c48adc78a856271caad4d
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index b6fa071..ce6de2a 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -77,7 +77,7 @@
import com.android.launcher3.allapps.AllAppsTransitionController;
import com.android.launcher3.allapps.DiscoveryBounce;
import com.android.launcher3.anim.PropertyListBuilder;
-import com.android.launcher3.badge.BadgeInfo;
+import com.android.launcher3.dot.DotInfo;
import com.android.launcher3.compat.AppWidgetManagerCompat;
import com.android.launcher3.compat.LauncherAppsCompatVO;
import com.android.launcher3.config.FeatureFlags;
@@ -473,8 +473,8 @@
}
@Override
- public BadgeInfo getBadgeInfoForItem(ItemInfo info) {
- return mPopupDataProvider.getBadgeInfoForItem(info);
+ public DotInfo getDotInfoForItem(ItemInfo info) {
+ return mPopupDataProvider.getDotInfoForItem(info);
}
@Override
@@ -1105,13 +1105,13 @@
}
};
- public void updateIconBadges(final Set<PackageUserKey> updatedBadges) {
- mWorkspace.updateIconBadges(updatedBadges);
- mAppsView.getAppsStore().updateIconBadges(updatedBadges);
+ public void updateNotificationDots(final Set<PackageUserKey> updatedDots) {
+ mWorkspace.updateNotificationDots(updatedDots);
+ mAppsView.getAppsStore().updateNotificationDots(updatedDots);
PopupContainerWithArrow popup = PopupContainerWithArrow.getOpen(Launcher.this);
if (popup != null) {
- popup.updateNotificationHeader(updatedBadges);
+ popup.updateNotificationHeader(updatedDots);
}
}