Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bba8686 authored by Jon Miranda's avatar Jon Miranda Committed by android-build-merger
Browse files

Ignore tasks if the LauncherModel is still pending.

am: f28629a4

Change-Id: I528620c0e662ac35004c3929b002c6c5c1823cc0
parents 0ced1701 f28629a4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);
    }