Loading src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java +8 −2 Original line number Diff line number Diff line Loading @@ -118,8 +118,14 @@ public class AllAppsSearchBarController @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO) { if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO || ( actionId == EditorInfo.IME_NULL && event != null && event.getAction() == KeyEvent.ACTION_DOWN)) { if (actionId == EditorInfo.IME_NULL) { Log.i(TAG, "User pressed ENTER key"); } else { Log.i(TAG, "User tapped ime search button"); } // selectFocusedView should return SearchTargetEvent that is passed onto onClick return mLauncher.getAppsView().getMainAdapterProvider().launchHighlightedItem(); } Loading Loading
src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java +8 −2 Original line number Diff line number Diff line Loading @@ -118,8 +118,14 @@ public class AllAppsSearchBarController @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO) { if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO || ( actionId == EditorInfo.IME_NULL && event != null && event.getAction() == KeyEvent.ACTION_DOWN)) { if (actionId == EditorInfo.IME_NULL) { Log.i(TAG, "User pressed ENTER key"); } else { Log.i(TAG, "User tapped ime search button"); } // selectFocusedView should return SearchTargetEvent that is passed onto onClick return mLauncher.getAppsView().getMainAdapterProvider().launchHighlightedItem(); } Loading