diff options
author | Winson Chung <winsonc@google.com> | 2015-06-02 23:59:42 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-02 23:59:43 +0000 |
commit | ca51aaad671f1999dff135b1253fecf0869a3763 (patch) | |
tree | 65ca068e7097f5a92f3f7d053b09063970d5f301 /src/com/android/launcher3/allapps/AlphabeticalAppsList.java | |
parent | 59caa60222e55212c13110ca0890023b47356fa5 (diff) | |
parent | 8f1eff7b6cc8621888ee46605c32e601f80a890b (diff) | |
download | android_packages_apps_Trebuchet-ca51aaad671f1999dff135b1253fecf0869a3763.tar.gz android_packages_apps_Trebuchet-ca51aaad671f1999dff135b1253fecf0869a3763.tar.bz2 android_packages_apps_Trebuchet-ca51aaad671f1999dff135b1253fecf0869a3763.zip |
Merge "Adding context for app launches." into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3/allapps/AlphabeticalAppsList.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AlphabeticalAppsList.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java index aa5e907e1..e284f77c4 100644 --- a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java +++ b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java @@ -46,6 +46,7 @@ public class AlphabeticalAppsList { public static final String TAG = "AlphabeticalAppsList"; private static final boolean DEBUG = false; + private static final boolean DEBUG_PREDICTIONS = false; /** * Info about a section in the alphabetic list @@ -477,6 +478,15 @@ public class AlphabeticalAppsList { mAdapterItems.clear(); mSections.clear(); + if (DEBUG_PREDICTIONS) { + if (mPredictedAppComponents.isEmpty() && !mApps.isEmpty()) { + mPredictedAppComponents.add(mApps.get(0).componentName); + mPredictedAppComponents.add(mApps.get(0).componentName); + mPredictedAppComponents.add(mApps.get(0).componentName); + mPredictedAppComponents.add(mApps.get(0).componentName); + } + } + // Process the predicted app components mPredictedApps.clear(); if (mPredictedAppComponents != null && !mPredictedAppComponents.isEmpty() && !hasFilter()) { |