Revert "Revert "Synchronizing loader preload to avoid launcher getting stuck in loading state,""
This reverts commit 73aa3025c0.
Reason for revert: Post-drop revert
Change-Id: Ife752d26e07d9c064c938ff8d33d40457b54217a
This commit is contained in:
1 parent
73aa3025c0
commit
d6519668bf
2 files changed
+11
-5
No files matched your search
@@ -493,6 +493,15 @@ public class LauncherModel extends BroadcastReceiver
|
||||
}
|
||||
}
|
||||
|
||||
public void startLoaderForResultsIfNotLoaded(LoaderResults results) {
|
||||
synchronized (mLock) {
|
||||
if (!isModelLoaded()) {
|
||||
Log.d(TAG, "Workspace not loaded, loading now");
|
||||
startLoaderForResults(results);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the workspace screen ids in an ordered list.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user