We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4066d7 commit 4318accCopy full SHA for 4318acc
library/src/main/java/com/firebase/ui/FirebaseLoginBaseActivity.java
@@ -97,6 +97,18 @@ protected void onStart() {
97
@Override
98
public void onAuthStateChanged(AuthData authData) {
99
if (authData != null) {
100
+ if (authData.getProvider().equals("google")) {
101
+ mChosenProvider = SocialProvider.Google;
102
+ }
103
+ else if (authData.getProvider().equals("facebook")) {
104
+ mChosenProvider = SocialProvider.Facebook;
105
106
+ else if (authData.getProvider().equals("twitter")) {
107
+ mChosenProvider = SocialProvider.Twitter;
108
109
+ else {
110
+ throw new UnsupportedOperationException("Provider '"+authData.getProvider()+"' is not handled");
111
112
onFirebaseLogin(authData);
113
} else {
114
onFirebaseLogout();
0 commit comments