Prevent crash

pull/194/merge
M66B 3 years ago
parent d100d8c52e
commit 695e8edb39

@ -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…
Cancel
Save