summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-01-13 14:40:54 -0800
committercretin45 <cretin45@gmail.com>2016-01-13 14:41:41 -0800
commitfb312defb7f570d2e3a6ed2357735759c647cb8b (patch)
tree9500a52a726a7091ac57ce5c695d22f2afe5cc3e /src/com/android/launcher3/allapps
parent5b044565f7e509069b5bdff4e71fd11281dc171f (diff)
downloadandroid_packages_apps_Trebuchet-fb312defb7f570d2e3a6ed2357735759c647cb8b.tar.gz
android_packages_apps_Trebuchet-fb312defb7f570d2e3a6ed2357735759c647cb8b.tar.bz2
android_packages_apps_Trebuchet-fb312defb7f570d2e3a6ed2357735759c647cb8b.zip
Trebuchet: Remove app search controller if turned off
Issue-id: CYNGNOS-1590 Change-Id: I0e5e8eacfc696380947f1667fd5ebd927252e125
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index 5434e720f..18030b451 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -290,6 +290,10 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
* Sets the search bar that shows above the a-z list.
*/
public void setSearchBarController(AllAppsSearchBarController searchController) {
+ if (searchController == null) {
+ mSearchBarController = null;
+ return;
+ }
if (mSearchBarController != null) {
throw new RuntimeException("Expected search bar controller to only be set once");
}