Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 829c0d85 authored by Timi Rautamäki's avatar Timi Rautamäki Committed by Nolen Johnson
Browse files

SUW: remove privacy policy link on large-notouch

TV's don't have any way to open links.

Change-Id: Ia7123e37668199b76e1e12803223b1cef4e25175
parent 161a3a68
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2021 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <bool name="config_isLargeNoTouch">true</bool>
</resources>
+2 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2013 The CyanogenMod Project
                   2021 The LineageOS Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -22,5 +23,5 @@
    <bool name="check_custom_theme_by_default">true</bool>
    <string name="wizard_script_uri" translatable="false">android.resource://org.lineageos.setupwizard/raw/wizard_script</string>
    <string name="wizard_script_user_uri" translatable="false">android.resource://org.lineageos.setupwizard/raw/wizard_script_user</string>

    <bool name="config_isLargeNoTouch">false</bool>
</resources>
+19 −17
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ public class LineageSettingsActivity extends BaseSetupWizardActivity {
        String privacy_policy = getString(R.string.services_privacy_policy);
        String policySummary = getString(R.string.services_explanation, os_name, privacy_policy);
        SpannableString ss = new SpannableString(policySummary);
        if (!getResources().getBoolean(R.bool.config_isLargeNoTouch)) {
            ClickableSpan clickableSpan = new ClickableSpan() {
                @Override
                public void onClick(View textView) {
@@ -94,6 +95,7 @@ public class LineageSettingsActivity extends BaseSetupWizardActivity {
            ss.setSpan(clickableSpan,
                    ppStartIndex, ppStartIndex + privacy_policy.length(),
                    Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        }
        TextView privacyPolicy = (TextView) findViewById(R.id.privacy_policy);
        privacyPolicy.setMovementMethod(LinkMovementMethod.getInstance());
        privacyPolicy.setText(ss);