mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Stop re-requesting google auth permissions right after user denied them (#1307)
This commit is contained in:
parent
7432944313
commit
0f0849634a
1 changed files with 5 additions and 1 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue