Prevent crash

This commit is contained in:
M66B 2021-10-16 07:53:46 +02:00
parent a0a97a69ba
commit ea877584bb
1 changed files with 3 additions and 0 deletions

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);