summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Cross <edward.k.cross@gmail.com>2018-07-31 11:59:25 (GMT)
committerEdward Cross <edward.k.cross@gmail.com>2018-07-31 12:05:40 (GMT)
commit82b5ed24723cee4ff674b38cb695b371895b041e (patch)
tree8eceb205392105bbc86137461c8cc251146d2a73
parenta77601a96c9dc0f7489e87a6ab0bb2499b8a9461 (diff)
downloadandroid_packages_apps_Trebuchet-82b5ed24723cee4ff674b38cb695b371895b041e.zip
android_packages_apps_Trebuchet-82b5ed24723cee4ff674b38cb695b371895b041e.tar.gz
android_packages_apps_Trebuchet-82b5ed24723cee4ff674b38cb695b371895b041e.tar.bz2
Trebuchet: fix derp
* a77601a96c9dc0f7489e87a6ab0bb2499b8a9461 made it load predictive apps through the SearchLauncherCallback instead of our implementation Change-Id: I939adb6e0c4009cd22df4f81eb0ce5ecb30134ad
-rw-r--r--src/com/android/launcher3/Launcher.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 87b52bc..b5f0f22 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3097,11 +3097,7 @@ public class Launcher extends BaseActivity
public void tryAndUpdatePredictedApps() {
List<ComponentKeyMapper<AppInfo>> apps = null;
if (mSharedPrefs.getBoolean("pref_predictive_apps", true)) {
- if (mLauncherCallbacks == null) {
- apps = mPredictiveAppsProvider.getPredictions();
- } else {
- apps = mLauncherCallbacks.getPredictedApps();
- }
+ apps = mPredictiveAppsProvider.getPredictions();
}
if (apps != null) {