File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
java/com/firebase/uidemo/auth Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ public class AuthUiActivity extends AppCompatActivity {
53
53
private static final String GOOGLE_TOS_URL = "https://www.google.com/policies/terms/" ;
54
54
private static final String FIREBASE_TOS_URL = "https://firebase.google.com/terms/" ;
55
55
private static final String GOOGLE_PRIVACY_POLICY_URL = "https://www.google.com/policies/privacy/" ;
56
+ private static final String FIREBASE_PRIVACY_POLICY_URL = "https://firebase.google.com/terms/analytics/#7_privacy" ;
56
57
private static final int RC_SIGN_IN = 100 ;
57
58
58
59
@ BindView (R .id .default_theme )
@@ -88,6 +89,9 @@ public class AuthUiActivity extends AppCompatActivity {
88
89
@ BindView (R .id .google_privacy )
89
90
RadioButton mUseGooglePrivacyPolicy ;
90
91
92
+ @ BindView (R .id .firebase_privacy )
93
+ RadioButton mUseFirebasePrivacyPolicy ;
94
+
91
95
@ BindView (R .id .sign_in )
92
96
Button mSignIn ;
93
97
@@ -338,7 +342,7 @@ private String getSelectedPrivacyPolicyUrl() {
338
342
return GOOGLE_PRIVACY_POLICY_URL ;
339
343
}
340
344
341
- return GOOGLE_PRIVACY_POLICY_URL ;
345
+ return FIREBASE_PRIVACY_POLICY_URL ;
342
346
}
343
347
344
348
@ MainThread
Original file line number Diff line number Diff line change 160
160
android : checked =" true"
161
161
android : text =" @string/google_privacy_label" />
162
162
163
+ <RadioButton
164
+ android : id =" @+id/firebase_privacy"
165
+ android : layout_width =" wrap_content"
166
+ android : layout_height =" wrap_content"
167
+ android : text =" @string/firebase_privacy_label" />
168
+
163
169
</RadioGroup >
164
170
165
171
<TextView
Original file line number Diff line number Diff line change 32
32
<string name =" google_tos_label" >Google TOS</string >
33
33
<string name =" firebase_tos_label" >Firebase TOS</string >
34
34
<string name =" google_privacy_label" >Google Privacy Policy</string >
35
+ <string name =" firebase_privacy_label" >Firebase Privacy Policy</string >
35
36
<string name =" tos_header" >Terms of Service URL:</string >
36
37
<string name =" privacy_policy_header" >Privacy Policy URL:</string >
37
38
<string name =" unknown_response" >Unexpected onActivityResult response code</string >
You can’t perform that action at this time.
0 commit comments