How to update a question
GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso); Intent signInIntent = mGoogleSignInClient.getSignInIntent(); startActivityForResult(signInIntent, AUTH_REQUEST); ... @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == AUTH_REQUEST) { if (resultCode == RESULT_OK) { // результат не ок! Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data); try { GoogleSignInAccount account = task.getResult(ApiException.class); firebaseAuthWithGoogle(account); } catch (ApiException e) {...} } ... After startActivityForResult, the activity starts with the choice of account, after selecting, the screen is darkened by (0.5-1 sec) to connect. If at this moment you click on the screen, then
resultCode == RESULT_CANCELED com.google.android.gms.common.api.ApiException: 16
Question: how to prevent the reaction to pressing?