Skip to content

Commit 57c5665

Browse files
author
Bernat Borrás Paronella
committed
Add setGithubButtonId
1 parent 26249c7 commit 57c5665

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthMethodPickerLayout.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ public AuthMethodPickerLayout.Builder setEmailButtonId(@IdRes int emailButton) {
135135
return this;
136136
}
137137

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+
138146
/**
139147
* Set the ID of the Phone Number sign in button in the custom layout.
140148
*/

0 commit comments

Comments
 (0)