mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 05:38:31 +00:00
Prevent crash
This commit is contained in:
parent
d100d8c52e
commit
695e8edb39
1 changed files with 3 additions and 0 deletions
|
@ -323,6 +323,9 @@ public class FragmentGmail extends FragmentBase {
|
|||
throw new IllegalArgumentException("Android returned no token");
|
||||
Log.i("Got token name=" + account.name);
|
||||
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
onAuthorized(name, token);
|
||||
} catch (Throwable ex) {
|
||||
// android.accounts.OperationCanceledException = ServiceDisabled?
|
||||
|
|
Loading…
Reference in a new issue