mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Prevent crash
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user