Prevent crash

This commit is contained in:
M66B 2021-10-16 07:24:24 +02:00
parent cb50de94f2
commit 4878d97344
1 changed files with 3 additions and 0 deletions

View File

@ -912,6 +912,9 @@ public class FragmentOAuth extends FragmentBase {
private void showError(Throwable ex) { private void showError(Throwable ex) {
Log.e(ex); Log.e(ex);
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
if (ex instanceof IllegalArgumentException) if (ex instanceof IllegalArgumentException)
tvError.setText(ex.getMessage()); tvError.setText(ex.getMessage());
else else