Skip to content

Commit fb31f91

Browse files
authored
Merge pull request #416 from SUPERCILEX/fix-smartlock-email-flow
Fix smart lock email flow
2 parents 225dffd + e13834c commit fb31f91

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,19 @@ public void onComplete(@NonNull Task<Status> task) {
329329
}
330330

331331
private void redirectToIdpSignIn(String email, String accountType) {
332-
if (accountType != null && (accountType.equals(IdentityProviders.GOOGLE)
332+
if (TextUtils.isEmpty(accountType)) {
333+
startActivityForResult(
334+
SignInNoPasswordActivity.createIntent(
335+
getContext(),
336+
mHelper.getFlowParams(),
337+
email),
338+
RC_EMAIL_FLOW);
339+
return;
340+
}
341+
342+
if (accountType.equals(IdentityProviders.GOOGLE)
333343
|| accountType.equals(IdentityProviders.FACEBOOK)
334-
|| accountType.equals(IdentityProviders.TWITTER))) {
344+
|| accountType.equals(IdentityProviders.TWITTER)) {
335345
IdpSignInContainer.signIn(
336346
getActivity(),
337347
mHelper.getFlowParams(),

0 commit comments

Comments
 (0)