OSDN Git Service

Ensuring that we always update the predicted apps set.
authorWinson Chung <winsonc@google.com>
Thu, 25 Jun 2015 19:17:30 +0000 (12:17 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 25 Jun 2015 19:24:24 +0000 (19:24 +0000)
Change-Id: Ieecf019442dcf4af42463ed6cbc4cdcd19468dec

src/com/android/launcher3/Launcher.java

index 77c4540..847b29b 100644 (file)
@@ -3427,7 +3427,7 @@ public class Launcher extends Activity
     private void tryAndUpdatePredictedApps() {
         if (mLauncherCallbacks != null) {
             List<ComponentKey> apps = mLauncherCallbacks.getPredictedApps();
-            if (!apps.isEmpty()) {
+            if (apps != null) {
                 mAppsView.setPredictedApps(apps);
             }
         }