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

Commit 1fafd719 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Ensure getNotificationKeysForItem() returns empty on unsupported...

Merge "Ensure getNotificationKeysForItem() returns empty on unsupported items." into ub-launcher3-master
parents 5a2edd65 4d096298
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()]);