Prevent crash

This commit is contained in:
M66B 2021-09-08 20:36:18 +02:00
parent ab6150e587
commit c821fd15af
1 changed files with 2 additions and 2 deletions

View File

@ -524,7 +524,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
etQuery.setOnEditorActionListener(new TextView.OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_GO ||
event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
(event != null && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick();
return true;
}