mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Prevent crash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user