Skip to content

Commit 7a391ed

Browse files
committed
refactor: hide sign up button for email link auth (#2186)
1 parent c8a0a8d commit 7a391ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

auth/src/main/java/com/firebase/ui/auth/ui/email/CheckEmailFragment.java

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
9595
mSignInButton.setOnClickListener(this);
9696
mSignUpButton.setOnClickListener(this);
9797

98+
// Hide sign up button for email link authentication
99+
if (getEmailProvider().equals(EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)) {
100+
mSignUpButton.setVisibility(View.GONE);
101+
}
102+
98103
TextView termsText = view.findViewById(R.id.email_tos_and_pp_text);
99104
TextView footerText = view.findViewById(R.id.email_footer_tos_and_pp_text);
100105
FlowParameters flowParameters = getFlowParams();

0 commit comments

Comments
 (0)