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