Ignore tasks if the LauncherModel is still pending.

am: f28629a47b

Change-Id: I528620c0e662ac35004c3929b002c6c5c1823cc0
This commit is contained in:
Jon Miranda
2017-02-23 23:28:57 +00:00
committed by android-build-merger
@@ -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);
}