diff options
author | Winson Chung <winsonc@google.com> | 2015-07-10 14:33:23 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2015-07-10 16:08:56 -0700 |
commit | 76648c58d5fe8e5c0695f865243d3f421c53a84d (patch) | |
tree | fecf52a3b6890b74f0e6ffcea8473821a33bea0a /src/com/android/launcher3/allapps | |
parent | 4a0df755161c65e2d24299aeaf7408b2e97036d3 (diff) | |
download | android_packages_apps_Trebuchet-76648c58d5fe8e5c0695f865243d3f421c53a84d.tar.gz android_packages_apps_Trebuchet-76648c58d5fe8e5c0695f865243d3f421c53a84d.tar.bz2 android_packages_apps_Trebuchet-76648c58d5fe8e5c0695f865243d3f421c53a84d.zip |
Making long-press of AllApps to jump directly to search.
Bug: 22210146
Change-Id: Iacf28416d6e31233a68e3b41576a8860b4b72b88
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsContainerView.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 47bbf1513..67d572819 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -284,6 +284,15 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc return new DefaultAppSearchController(getContext(), this, mAppsRecyclerView); } + /** + * Focuses the search field and begins an app search. + */ + public void startAppsSearch() { + if (mSearchBarController != null) { + mSearchBarController.focusSearchField(); + } + } + @Override protected void onFinishInflate() { super.onFinishInflate(); |