mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
5a4c206290
commit
876f3a21ab
|
@ -332,6 +332,9 @@ public class FragmentGmail extends FragmentBase {
|
||||||
|
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
|
|
||||||
|
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||||
|
return;
|
||||||
|
|
||||||
tvError.setText(Log.formatThrowable(ex, false));
|
tvError.setText(Log.formatThrowable(ex, false));
|
||||||
grpError.setVisibility(View.VISIBLE);
|
grpError.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue