File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
auth/src/main/java/com/firebase/ui/auth/util/smartlock Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ private void delegateSignIn(boolean isAutoSignInAvailable) {
131
131
132
132
// Attempt auto-sign in using SmartLock
133
133
if (isAutoSignInAvailable ) {
134
- googleSilentSignIn ();
135
134
if (TextUtils .isEmpty (password )) {
136
135
// log in with id/provider
137
136
redirectToIdpSignIn (email , getAccountTypeFromCredential ());
@@ -223,7 +222,8 @@ private void handleCredential(Credential credential) {
223
222
if (IdentityProviders .GOOGLE .equals (credential .getAccountType ())) {
224
223
// Google account, rebuild GoogleApiClient to set account name and then try
225
224
initGoogleApiClient (credential .getId ());
226
- googleSilentSignIn ();
225
+ // Try silent sign-in with Google Sign In API
226
+ Auth .GoogleSignInApi .silentSignIn (mGoogleApiClient );
227
227
} else {
228
228
// Email/password account
229
229
String status = String .format ("Signed in as %s" , credential .getId ());
@@ -272,11 +272,6 @@ private void resolveSavedEmails() {
272
272
}
273
273
}
274
274
275
- private void googleSilentSignIn () {
276
- // Try silent sign-in with Google Sign In API
277
- Auth .GoogleSignInApi .silentSignIn (mGoogleApiClient );
278
- }
279
-
280
275
private void startAuthMethodChoice () {
281
276
List <IDPProviderParcel > providers = mFlowParams .providerInfo ;
282
277
You can’t perform that action at this time.
0 commit comments