Prevent crash

This commit is contained in:
M66B 2021-10-20 07:20:19 +02:00
parent 5a4c206290
commit 876f3a21ab
1 changed files with 3 additions and 0 deletions

View File

@ -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);