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:53:46 +02:00
parent a0a97a69ba
commit ea877584bb

View file

@ -473,6 +473,9 @@ public class FragmentOAuth extends FragmentBase {
}
private void onOAuthorized(String accessToken, String idToken, AuthState state) {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
Bundle args = new Bundle();
args.putString("id", id);
args.putString("name", name);