Moving various runnables in LauncherModel to individual tasks

> Adding tests for some of the runnable

Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
This commit is contained in:
Sunny Goyal committed 2016-11-09 15:50:08 -08:00
1 parent 0d547bfd57
commit f0ba8b7ca1
22 files changed
+1812 -909

No files matched your search

@@ -121,7 +121,7 @@ public class ManagedProfileHeuristic {
// getting filled with the managed user apps, when it start with a fresh DB (or after
// a very long time).
if (userAppsExisted && !homescreenApps.isEmpty()) {
mModel.addAndBindAddedWorkspaceItems(mContext, homescreenApps);
mModel.addAndBindAddedWorkspaceItems(homescreenApps);
}
}
@@ -175,7 +175,7 @@ public class ManagedProfileHeuristic {
// Add the item to home screen and DB. This also generates an item id synchronously.
ArrayList<ItemInfo> itemList = new ArrayList<ItemInfo>(1);
itemList.add(workFolder);
mModel.addAndBindAddedWorkspaceItems(mContext, itemList);
mModel.addAndBindAddedWorkspaceItems(itemList);
mPrefs.edit().putLong(folderIdKey, workFolder.id).apply();
saveWorkFolderShortcuts(workFolder.id, 0, workFolderApps);
@@ -200,7 +200,6 @@ public class ManagedProfileHeuristic {
}
}
/**
* Verifies that entries corresponding to {@param users} exist and removes all invalid entries.
*/