summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps
diff options
context:
space:
mode:
authorMartin Herndl <martin.herndl@gmail.com>2015-12-16 15:37:11 +0100
committercretin45 <cretin45@gmail.com>2015-12-16 11:46:58 -0800
commite524508dc1808f07feca3e6aa290d80adee421e0 (patch)
treebbce44613eae8f2c9164a4a3ddd90d1e887b9061 /src/com/android/launcher3/allapps
parent1b0f2b4127d1893c244896f5d94e1e0342ce601e (diff)
downloadandroid_packages_apps_Trebuchet-e524508dc1808f07feca3e6aa290d80adee421e0.tar.gz
android_packages_apps_Trebuchet-e524508dc1808f07feca3e6aa290d80adee421e0.tar.bz2
android_packages_apps_Trebuchet-e524508dc1808f07feca3e6aa290d80adee421e0.zip
Add app drawer search bar toggle to settings
This adds the possibility to enable or disable the search bar on top of the app drawer. In the Launcher class it will be created with the View.GONE visibility to avoid taking up space if disabled. Per default it behaves like before and is enabled. PS3: Make sure the hasSearchBar boolean is set. Change-Id: I48711aea2b15bf535815d0e453ac33079af26eca
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index b82cd2d0a..feb96df29 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -300,11 +300,16 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
mSearchBarContainerView.addView(searchBarView);
mSearchBarContainerView.setVisibility(View.VISIBLE);
mSearchBarView = searchBarView;
- setHasSearchBar();
+ setHasSearchBar(true);
updateBackgroundAndPaddings();
}
+ public void setSearchBarContainerViewVisibility(int visibility) {
+ mSearchBarContainerView.setVisibility(visibility);
+ updateBackgroundAndPaddings();
+ }
+
/**
* Scrolls this list view to the top.
*/