Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.firebase.ui.auth.data.model.IntentRequiredException;
import com.firebase.ui.auth.data.model.Resource;
import com.firebase.ui.auth.data.model.User;
import com.firebase.ui.auth.data.model.UserCancellationException;
import com.firebase.ui.auth.ui.HelperActivityBase;
import com.firebase.ui.auth.util.ExtraConstants;
import com.firebase.ui.auth.viewmodel.ProviderSignInBase;
Expand Down Expand Up @@ -96,7 +97,10 @@ public void onActivityResult(int requestCode, int resultCode, @Nullable Intent d
// Hack for https://github.com/googlesamples/google-services/issues/345
// Google remembers the account so the picker doesn't appear twice for the user.
start();
} else {
}else if(e.getStatusCode() == GoogleSignInStatusCodes.SIGN_IN_CANCELLED){
setResult(Resource.<IdpResponse>forFailure(new UserCancellationException()));
}
else {
if (e.getStatusCode() == CommonStatusCodes.DEVELOPER_ERROR) {
Log.w(TAG, "Developer error: this application is misconfigured. " +
"Check your SHA1 and package name in the Firebase console.");
Expand Down
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ object Config {
}

object PlayServices {
const val auth = "com.google.android.gms:play-services-auth:15.0.1"
const val auth = "com.google.android.gms:play-services-auth:16.0.0"
}


object Provider {
const val facebook = "com.facebook.android:facebook-login:4.33.0"
const val twitter = "com.twitter.sdk.android:twitter-core:3.1.1@aar"
Expand Down