SearchView has the following OnEditorActionListener on Android API 28:
private final OnEditorActionListener mOnEditorActionListener = new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { onSubmitQuery(); return true; } };
And in my debugger, I see that onEditorAction is called both with KeyEvent.action == KeyEvent.ACTION_DOWN and with KeyEvent.action == ACTION_UP .
This seems like an error in SearchView .
source share