File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -884,6 +884,7 @@ AuthMethodPickerLayout customLayout = new AuthMethodPickerLayout
884
884
.Builder (R . layout. your_custom_layout_xml)
885
885
.setGoogleButtonId(R . id. bar)
886
886
.setEmailButtonId(R . id. foo)
887
+ .setGithubButtonId(R . id. github)
887
888
// ...
888
889
.setTosAndPrivacyPolicyId(R . id. baz)
889
890
.build();
Original file line number Diff line number Diff line change @@ -135,6 +135,14 @@ public AuthMethodPickerLayout.Builder setEmailButtonId(@IdRes int emailButton) {
135
135
return this ;
136
136
}
137
137
138
+ /**
139
+ * Set the ID of the Github sign in button in the custom layout.
140
+ */
141
+ public AuthMethodPickerLayout .Builder setGithubButtonId (@ IdRes int githubButton ) {
142
+ providersMapping .put (GithubAuthProvider .PROVIDER_ID , githubButton );
143
+ return this ;
144
+ }
145
+
138
146
/**
139
147
* Set the ID of the Phone Number sign in button in the custom layout.
140
148
*/
You can’t perform that action at this time.
0 commit comments