mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
ab6150e587
commit
c821fd15af
|
@ -356,7 +356,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
||||||
cbKeywords.setChecked(last_search_keywords);
|
cbKeywords.setChecked(last_search_keywords);
|
||||||
cbMessage.setChecked(last_search_message);
|
cbMessage.setChecked(last_search_message);
|
||||||
tvSearchTextUnsupported.setText(getString(R.string.title_search_text_unsupported,
|
tvSearchTextUnsupported.setText(getString(R.string.title_search_text_unsupported,
|
||||||
"full text search not supported"));
|
"full text search not supported"));
|
||||||
cbNotes.setChecked(last_search_notes);
|
cbNotes.setChecked(last_search_notes);
|
||||||
tvAfter.setText(null);
|
tvAfter.setText(null);
|
||||||
tvBefore.setText(null);
|
tvBefore.setText(null);
|
||||||
|
@ -524,7 +524,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
||||||
etQuery.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
etQuery.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
||||||
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
||||||
if (actionId == EditorInfo.IME_ACTION_GO ||
|
if (actionId == EditorInfo.IME_ACTION_GO ||
|
||||||
event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
|
(event != null && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
||||||
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick();
|
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue