From f51084c29643929849d6ee903be9f9071e77f4b6 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 18 Feb 2016 00:40:49 +0000 Subject: [PATCH] Revert "Temporarily disabling custom search controller" This reverts commit 954b7d36b96190b5b81e1784aaa5bb40057a8bca. Change-Id: If304fa164e50f68aac168ede0f4bc0ff97659a8a --- src/com/android/launcher3/Launcher.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index d9217e8244..7330712f87 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -1377,14 +1377,11 @@ public class Launcher extends Activity // Setup Apps and Widgets mAppsView = (AllAppsContainerView) findViewById(R.id.apps_view); mWidgetsView = (WidgetsContainerView) findViewById(R.id.widgets_view); - mAppsView.setSearchBarController(new DefaultAppSearchController()); - - // TODO: Reenable this -// if (mLauncherCallbacks != null && mLauncherCallbacks.getAllAppsSearchBarController() != null) { -// mAppsView.setSearchBarController(mLauncherCallbacks.getAllAppsSearchBarController()); -// } else { -// mAppsView.setSearchBarController(new DefaultAppSearchController()); -// } + if (mLauncherCallbacks != null && mLauncherCallbacks.getAllAppsSearchBarController() != null) { + mAppsView.setSearchBarController(mLauncherCallbacks.getAllAppsSearchBarController()); + } else { + mAppsView.setSearchBarController(new DefaultAppSearchController()); + } // Setup the drag controller (drop targets have to be added in reverse order in priority) dragController.setDragScoller(mWorkspace);