Ignore tasks if the LauncherModel is still pending.
am: f28629a47b
Change-Id: I528620c0e662ac35004c3929b002c6c5c1823cc0
This commit is contained in:
@@ -1800,6 +1800,12 @@ public class LauncherModel extends BroadcastReceiver
|
||||
}
|
||||
|
||||
void enqueueModelUpdateTask(BaseModelUpdateTask task) {
|
||||
if (!mModelLoaded && mLoaderTask == null) {
|
||||
if (DEBUG_LOADERS) {
|
||||
Log.d(TAG, "enqueueModelUpdateTask Ignoring task since loader is pending=" + task);
|
||||
}
|
||||
return;
|
||||
}
|
||||
task.init(this);
|
||||
runOnWorkerThread(task);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user