Making long-press of AllApps to jump directly to search.

Bug: 22210146
Change-Id: Iacf28416d6e31233a68e3b41576a8860b4b72b88
This commit is contained in:
Winson Chung
2015-07-10 14:33:23 -07:00
parent 4a0df75516
commit 76648c58d5
4 changed files with 52 additions and 20 deletions

View File

@@ -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();