mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
Prevent crash
This commit is contained in:
parent
27330ceddc
commit
1a32c1e1cd
3 changed files with 12 additions and 3 deletions
|
@ -383,6 +383,9 @@ public class FragmentAccounts extends FragmentBase {
|
|||
}
|
||||
|
||||
private void onMenuSearch() {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
Bundle args = new Bundle();
|
||||
|
||||
FragmentDialogSearch fragment = new FragmentDialogSearch();
|
||||
|
|
|
@ -727,6 +727,9 @@ public class FragmentFolders extends FragmentBase {
|
|||
}
|
||||
|
||||
private void onMenuSearch() {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("account", account);
|
||||
|
||||
|
|
|
@ -3474,7 +3474,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
boolean leave = (Boolean.TRUE.equals(result.leave_deleted) && result.isInbox);
|
||||
popupMenu.getMenu().add(Menu.FIRST, R.string.title_delete_permanently, order++,
|
||||
leave ? R.string.title_trash : R.string.title_delete_permanently)
|
||||
leave ? R.string.title_trash : R.string.title_delete_permanently)
|
||||
.setIcon(leave ? R.drawable.twotone_delete_24 : R.drawable.twotone_delete_forever_24);
|
||||
|
||||
for (EntityAccount account : result.accounts.keySet()) {
|
||||
|
@ -4616,8 +4616,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
return false;
|
||||
|
||||
final Snackbar snackbar = Snackbar.make(view,
|
||||
R.string.title_setup_alarm_12,
|
||||
Snackbar.LENGTH_INDEFINITE)
|
||||
R.string.title_setup_alarm_12,
|
||||
Snackbar.LENGTH_INDEFINITE)
|
||||
.setGestureInsetBottomIgnored(true);
|
||||
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
|
||||
@Override
|
||||
|
@ -5232,6 +5232,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
}
|
||||
|
||||
private void onMenuSearch() {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("account", account);
|
||||
args.putLong("folder", folder);
|
||||
|
|
Loading…
Reference in a new issue