Merge "Ensure getNotificationKeysForItem() returns empty on unsupported items." into ub-launcher3-master

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2017-02-01 19:10:37 +00:00
commit 1fafd719cb
1 file changed
+1 -1
@@ -148,7 +148,7 @@ public class PopupDataProvider implements NotificationListener.NotificationsChan
}
public String[] getNotificationKeysForItem(ItemInfo info) {
BadgeInfo badgeInfo = mPackageUserToBadgeInfos.get(PackageUserKey.fromItemInfo(info));
BadgeInfo badgeInfo = getBadgeInfoForItem(info);
if (badgeInfo == null) { return new String[0]; }
List<String> notificationKeys = badgeInfo.getNotificationKeys();
return notificationKeys.toArray(new String[notificationKeys.size()]);