Skip to content

Commit 20413ee

Browse files
committed
Cleanup
1 parent 7d1d1c6 commit 20413ee

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

auth/src/main/java/com/firebase/ui/auth/util/smartlock/SignInDelegate.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ private void delegateSignIn(boolean isAutoSignInAvailable) {
131131

132132
// Attempt auto-sign in using SmartLock
133133
if (isAutoSignInAvailable) {
134-
googleSilentSignIn();
135134
if (TextUtils.isEmpty(password)) {
136135
// log in with id/provider
137136
redirectToIdpSignIn(email, getAccountTypeFromCredential());
@@ -223,7 +222,8 @@ private void handleCredential(Credential credential) {
223222
if (IdentityProviders.GOOGLE.equals(credential.getAccountType())) {
224223
// Google account, rebuild GoogleApiClient to set account name and then try
225224
initGoogleApiClient(credential.getId());
226-
googleSilentSignIn();
225+
// Try silent sign-in with Google Sign In API
226+
Auth.GoogleSignInApi.silentSignIn(mGoogleApiClient);
227227
} else {
228228
// Email/password account
229229
String status = String.format("Signed in as %s", credential.getId());
@@ -272,11 +272,6 @@ private void resolveSavedEmails() {
272272
}
273273
}
274274

275-
private void googleSilentSignIn() {
276-
// Try silent sign-in with Google Sign In API
277-
Auth.GoogleSignInApi.silentSignIn(mGoogleApiClient);
278-
}
279-
280275
private void startAuthMethodChoice() {
281276
List<IDPProviderParcel> providers = mFlowParams.providerInfo;
282277

0 commit comments

Comments
 (0)