am 76648c58: Making long-press of AllApps to jump directly to search.

* commit '76648c58d5fe8e5c0695f865243d3f421c53a84d':
  Making long-press of AllApps to jump directly to search.
This commit is contained in:
Winson Chung
2015-07-10 23:35:58 +00:00
committed by Android Git Automerger
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();