Using persisted item storage for install queue.
Shared prefs are loaded during startup and should avoid large objects Change-Id: Ibb5c8307dbccb9414b42454825e6c3c2a972efa6
This commit is contained in:
1 parent
a92c26b161
commit
104c9d1206
3 files changed
+74
-148
No files matched your search
@@ -297,8 +297,7 @@ public class BgDataModel {
|
||||
.filter(wi -> wi.itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT)
|
||||
.map(ShortcutKey::fromItemInfo),
|
||||
// Pending shortcuts
|
||||
ItemInstallQueue.INSTANCE.get(context).getPendingShortcuts()
|
||||
.stream().filter(si -> si.user.equals(user)))
|
||||
ItemInstallQueue.INSTANCE.get(context).getPendingShortcuts(user))
|
||||
.collect(groupingBy(ShortcutKey::getPackageName,
|
||||
mapping(ShortcutKey::getId, Collectors.toSet())));
|
||||
|
||||
|
||||
Reference in new issue
Block a user