File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
- Fixes issue with custom parameters for OAuth providers (#1805 )
2
+ - Restore ` setGithubButtonId ` when using custom layouts (#1783 )
Original file line number Diff line number Diff line change 6
6
7
7
import com .google .firebase .auth .EmailAuthProvider ;
8
8
import com .google .firebase .auth .FacebookAuthProvider ;
9
+ import com .google .firebase .auth .GithubAuthProvider ;
9
10
import com .google .firebase .auth .GoogleAuthProvider ;
10
11
import com .google .firebase .auth .PhoneAuthProvider ;
11
12
import com .google .firebase .auth .TwitterAuthProvider ;
@@ -158,6 +159,12 @@ public AuthMethodPickerLayout.Builder setAnonymousButtonId(@IdRes int anonymousB
158
159
return this ;
159
160
}
160
161
162
+ public AuthMethodPickerLayout .Builder setGithubButtonId (
163
+ @ IdRes int githubButtonId ) {
164
+ providersMapping .put (GithubAuthProvider .PROVIDER_ID , githubButtonId );
165
+ return this ;
166
+ }
167
+
161
168
public AuthMethodPickerLayout .Builder setMicrosoftButtonId (
162
169
@ IdRes int microsoftButtonId ) {
163
170
providersMapping .put (AuthUI .MICROSOFT_PROVIDER , microsoftButtonId );
Original file line number Diff line number Diff line change @@ -149,8 +149,7 @@ public final class AuthUI {
149
149
public static final Set <String > SOCIAL_PROVIDERS =
150
150
Collections .unmodifiableSet (new HashSet <>(Arrays .asList (
151
151
GoogleAuthProvider .PROVIDER_ID ,
152
- FacebookAuthProvider .PROVIDER_ID ,
153
- GithubAuthProvider .PROVIDER_ID )));
152
+ FacebookAuthProvider .PROVIDER_ID )));
154
153
155
154
@ RestrictTo (RestrictTo .Scope .LIBRARY_GROUP )
156
155
public static final String UNCONFIGURED_CONFIG_VALUE = "CHANGE-ME" ;
You can’t perform that action at this time.
0 commit comments