Moved hide keyboard to its own method

Change-Id: I3f5877965a2b8f92d48e2fecef54f400b6e455d2
diff --git a/src/com/android/launcher3/allapps/AllAppsSearchBarController.java b/src/com/android/launcher3/allapps/AllAppsSearchBarController.java
index e75210b..7746245 100644
--- a/src/com/android/launcher3/allapps/AllAppsSearchBarController.java
+++ b/src/com/android/launcher3/allapps/AllAppsSearchBarController.java
@@ -144,6 +144,10 @@
         unfocusSearchField();
         mCb.clearSearchResult();
         mInput.setText("");
+        hideKeyboard();
+    }
+
+    protected void hideKeyboard() {
         mInputMethodManager.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
     }