Merge "Fix wrong widget appearing in widget picker for tablet" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
521e3748d8
@@ -242,7 +242,7 @@ public class PopupDataProvider implements NotificationListener.NotificationsChan
|
||||
public WidgetsListContentEntry getSelectedAppWidgets(PackageUserKey packageUserKey) {
|
||||
return (WidgetsListContentEntry) mAllWidgets.stream()
|
||||
.filter(row -> row instanceof WidgetsListContentEntry
|
||||
&& row.mPkgItem.packageName.equals(packageUserKey.mPackageName))
|
||||
&& PackageUserKey.fromPackageItemInfo(row.mPkgItem).equals(packageUserKey))
|
||||
.findAny()
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user