mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Synchronizing model data access
Test: Presubmit Bug: 173328873 Change-Id: Ifc1724e17ebfa2ee5f21bb3f272986b8a14fdbc1
This commit is contained in:
@@ -375,6 +375,16 @@ public class BgDataModel {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list containing all workspace items including widgets.
|
||||
*/
|
||||
public synchronized ArrayList<ItemInfo> getAllWorkspaceItems() {
|
||||
ArrayList<ItemInfo> items = new ArrayList<>(workspaceItems.size() + appWidgets.size());
|
||||
items.addAll(workspaceItems);
|
||||
items.addAll(appWidgets);
|
||||
return items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the provided {@code op} for all workspaceItems in the in-memory model (both persisted
|
||||
* items and dynamic/predicted items for the provided {@code userHandle}.
|
||||
|
||||
Reference in New Issue
Block a user