1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Prevent crash

This commit is contained in:
M66B 2021-10-16 07:24:24 +02:00
parent cb50de94f2
commit 4878d97344

View file

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