mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 10:35:15 +01:00
Prevent crash
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user