Skip to content

Commit 2e9daf6

Browse files
committed
Add additional privacy policy URL to demo app
1 parent 97c1df2 commit 2e9daf6

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

app/src/main/java/com/firebase/uidemo/auth/AuthUiActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class AuthUiActivity extends AppCompatActivity {
5353
private static final String GOOGLE_TOS_URL = "https://www.google.com/policies/terms/";
5454
private static final String FIREBASE_TOS_URL = "https://firebase.google.com/terms/";
5555
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";
5657
private static final int RC_SIGN_IN = 100;
5758

5859
@BindView(R.id.default_theme)
@@ -88,6 +89,9 @@ public class AuthUiActivity extends AppCompatActivity {
8889
@BindView(R.id.google_privacy)
8990
RadioButton mUseGooglePrivacyPolicy;
9091

92+
@BindView(R.id.firebase_privacy)
93+
RadioButton mUseFirebasePrivacyPolicy;
94+
9195
@BindView(R.id.sign_in)
9296
Button mSignIn;
9397

@@ -338,7 +342,7 @@ private String getSelectedPrivacyPolicyUrl() {
338342
return GOOGLE_PRIVACY_POLICY_URL;
339343
}
340344

341-
return GOOGLE_PRIVACY_POLICY_URL;
345+
return FIREBASE_PRIVACY_POLICY_URL;
342346
}
343347

344348
@MainThread

app/src/main/res/layout/auth_ui_layout.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@
160160
android:checked="true"
161161
android:text="@string/google_privacy_label"/>
162162

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+
163169
</RadioGroup>
164170

165171
<TextView

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<string name="google_tos_label">Google TOS</string>
3333
<string name="firebase_tos_label">Firebase TOS</string>
3434
<string name="google_privacy_label">Google Privacy Policy</string>
35+
<string name="firebase_privacy_label">Firebase Privacy Policy</string>
3536
<string name="tos_header">Terms of Service URL:</string>
3637
<string name="privacy_policy_header">Privacy Policy URL:</string>
3738
<string name="unknown_response">Unexpected onActivityResult response code</string>

0 commit comments

Comments
 (0)