Move privacy policy uri to strings resource
Instead of hardcoding the privacy policy uri, move it to a strings resource which allows overlaying it. Change-Id: Iff83ba6a7654f5c5e3f7fc8366f96fcec3517390 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
<string name="setup_services">LineageOS features</string>
|
||||
<string name="services_pp_explanation">These services work for you to extend the capabilities of your device. Data will be used in accordance with <xliff:g id="name" example="LineageOS">%1$s</xliff:g>\'s privacy policy.</string>
|
||||
<string name="services_find_privacy_policy">You can read the privacy policy on another device by visiting <xliff:g id="uri" example="https://lineageos.org/legal">%1$s</xliff:g></string>
|
||||
<string name="services_privacy_policy_uri" translatable="false">https://lineageos.org/legal</string>
|
||||
<string name="services_help_improve_cm">Help improve <xliff:g id="name" example="LineageOS">%s</xliff:g></string>
|
||||
<string name="services_metrics_label"><xliff:g id="name" example="Help improve LineageOS">%1$s</xliff:g> by automatically sending diagnostic and usage data to <xliff:g id="name" example="LineageOS">%2$s</xliff:g>. This information can’t be used to identify you and lends a hand to teams working on things like battery life, app performance, and new <xliff:g id="name" example="LineageOS">%3$s</xliff:g> features.</string>
|
||||
<string name="services_os_nav_keys_label"><b>Use on screen navigation keys</b> instead of hardware keys.</string>
|
||||
|
@@ -46,8 +46,6 @@ public class LineageSettingsActivity extends BaseSetupWizardActivity {
|
||||
|
||||
public static final String TAG = LineageSettingsActivity.class.getSimpleName();
|
||||
|
||||
public static final String PRIVACY_POLICY_URI = "https://lineageos.org/legal";
|
||||
|
||||
private SetupWizardApp mSetupWizardApp;
|
||||
|
||||
private CheckBox mMetrics;
|
||||
@@ -75,7 +73,8 @@ public class LineageSettingsActivity extends BaseSetupWizardActivity {
|
||||
|
||||
String os_name = getString(R.string.os_name);
|
||||
String privacyPolicy = getString(R.string.services_pp_explanation, os_name);
|
||||
String policySummary = getString(R.string.services_find_privacy_policy, PRIVACY_POLICY_URI);
|
||||
String privacyPolicyUri = getString(R.string.services_privacy_policy_uri);
|
||||
String policySummary = getString(R.string.services_find_privacy_policy, privacyPolicyUri);
|
||||
String servicesFullDescription = getString(R.string.services_full_description,
|
||||
privacyPolicy, policySummary);
|
||||
getGlifLayout().setDescriptionText(servicesFullDescription);
|
||||
|
Reference in New Issue
Block a user