File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
auth/src/main/java/com/firebase/ui/auth/util/signincontainer Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,19 @@ public void onComplete(@NonNull Task<Status> task) {
329
329
}
330
330
331
331
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 )
333
343
|| accountType .equals (IdentityProviders .FACEBOOK )
334
- || accountType .equals (IdentityProviders .TWITTER ))) {
344
+ || accountType .equals (IdentityProviders .TWITTER )) {
335
345
IdpSignInContainer .signIn (
336
346
getActivity (),
337
347
mHelper .getFlowParams (),
You can’t perform that action at this time.
0 commit comments