Stop re-requesting google auth permissions right after user denied them (#1307)

This commit is contained in:
Anita W 2020-05-04 16:19:10 +01:00 committed by GitHub
parent 7432944313
commit 0f0849634a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,7 +294,11 @@ class LoginActivity : BaseActivity(), Consumer<UserAuthResponse> {
}
}
if (requestCode == REQUEST_CODE_RECOVER_FROM_PLAY_SERVICES_ERROR) {
handleGoogleLoginResult()
// RESULT_CANCELED occurs when user denies requested permissions. In this case we don't
// want to immediately ask them to accept permissions again. See Issue #1290 on github.
if (resultCode != Activity.RESULT_CANCELED) {
handleGoogleLoginResult()
}
}
if (requestCode == FacebookSdk.getCallbackRequestCodeOffset()) {