diff options
author | cretin45 <cretin45@gmail.com> | 2016-01-13 14:40:54 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2016-01-13 14:41:41 -0800 |
commit | fb312defb7f570d2e3a6ed2357735759c647cb8b (patch) | |
tree | 9500a52a726a7091ac57ce5c695d22f2afe5cc3e /src/com/android/launcher3/allapps | |
parent | 5b044565f7e509069b5bdff4e71fd11281dc171f (diff) | |
download | android_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.java | 4 |
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"); } |