mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
cb50de94f2
commit
4878d97344
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue