mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Prevent crash
This commit is contained in:
parent
0f0a8817ee
commit
6dca04cd87
1 changed files with 6 additions and 2 deletions
|
@ -421,8 +421,12 @@ public class FragmentMessages extends FragmentEx {
|
|||
} else {
|
||||
predicate.clearAccount();
|
||||
fabMore.hide();
|
||||
if (getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||
loadMessages();
|
||||
try {
|
||||
if (getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||
loadMessages();
|
||||
} catch (IllegalStateException ex) {
|
||||
Log.w(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
|
||||
}
|
||||
swipeRefresh.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue