Skip to content

Commit 7e24b57

Browse files
authored
refactor: hide # button for email link auth (#2186)
1 parent 7231cf5 commit 7e24b57

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
m#Button.setOnClickListener(this);
9797

98+
// Hide # button for email link authentication
99+
if (getEmailProvider().equals(EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)) {
100+
m#Button.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)