mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Prevent crash
This commit is contained in:
parent
7b1eb11f7a
commit
9f0352f546
2 changed files with 6 additions and 0 deletions
|
@ -6989,6 +6989,9 @@ public class FragmentCompose extends FragmentBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void endSearch() {
|
private void endSearch() {
|
||||||
|
if (etSearch == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Helper.hideKeyboard(etSearch);
|
Helper.hideKeyboard(etSearch);
|
||||||
etSearch.setVisibility(View.GONE);
|
etSearch.setVisibility(View.GONE);
|
||||||
clearSearch();
|
clearSearch();
|
||||||
|
|
|
@ -7204,6 +7204,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
}
|
}
|
||||||
|
|
||||||
private void endSearch() {
|
private void endSearch() {
|
||||||
|
if (etSearch == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Helper.hideKeyboard(etSearch);
|
Helper.hideKeyboard(etSearch);
|
||||||
etSearch.setVisibility(View.GONE);
|
etSearch.setVisibility(View.GONE);
|
||||||
clearSearch();
|
clearSearch();
|
||||||
|
|
Loading…
Reference in a new issue