Moved hide keyboard to its own method

Change-Id: I3f5877965a2b8f92d48e2fecef54f400b6e455d2
This commit is contained in:
Peter Schiller
2016-07-26 17:34:05 -07:00
parent c664f24de2
commit 35d96306ad

View File

@@ -144,6 +144,10 @@ public abstract class AllAppsSearchBarController
unfocusSearchField();
mCb.clearSearchResult();
mInput.setText("");
hideKeyboard();
}
protected void hideKeyboard() {
mInputMethodManager.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
}