OSDN Git Service

Skipping package update tasks if loader has not yet run.
authorSunny Goyal <sunnygoyal@google.com>
Wed, 6 May 2015 16:54:53 +0000 (09:54 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Wed, 6 May 2015 23:59:02 +0000 (16:59 -0700)
Bug: 20754508
Change-Id: Id2ddcff42cd41e4f9875ad6ef95f648365502b75

src/com/android/launcher3/LauncherModel.java

index 0138a91..048e9d9 100644 (file)
@@ -3004,6 +3004,10 @@ public class LauncherModel extends BroadcastReceiver
         }
 
         public void run() {
+            if (!mHasLoaderCompletedOnce) {
+                // Loader has not yet run.
+                return;
+            }
             final Context context = mApp.getContext();
 
             final String[] packages = mPackages;