GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit ce7988e1 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 40016 - Hide unwanted Settings

parent 363b998b
...@@ -86,7 +86,7 @@ class AccountUiView( ...@@ -86,7 +86,7 @@ class AccountUiView(
// Signed-out. // Signed-out.
} else { } else {
preferenceSignIn.isVisible = true preferenceSignIn.isVisible = false
preferenceFirefoxAccount.isVisible = false preferenceFirefoxAccount.isVisible = false
preferenceFirefoxAccountAuthError.isVisible = false preferenceFirefoxAccountAuthError.isVisible = false
accountPreferenceCategory.isVisible = false accountPreferenceCategory.isVisible = false
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
android:title="@string/preferences_passwords_autofill" /> android:title="@string/preferences_passwords_autofill" />
<Preference <Preference
android:key="@string/pref_key_password_sync_logins" android:key="@string/pref_key_password_sync_logins"
app:isPreferenceVisible="false"
android:summary="@string/preferences_passwords_sync_logins_off" android:summary="@string/preferences_passwords_sync_logins_off"
android:title="@string/preferences_passwords_sync_logins" /> android:title="@string/preferences_passwords_sync_logins" />
<Preference <Preference
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
android:key="@string/pref_key_sign_in" android:key="@string/pref_key_sign_in"
android:layout="@layout/sign_in_preference" android:layout="@layout/sign_in_preference"
android:summary="@string/preferences_sign_in_description" android:summary="@string/preferences_sign_in_description"
app:isPreferenceVisible="false"
android:title="@string/preferences_sync" /> android:title="@string/preferences_sync" />
<androidx.preference.PreferenceCategory <androidx.preference.PreferenceCategory
...@@ -98,6 +99,7 @@ ...@@ -98,6 +99,7 @@
<androidx.preference.Preference <androidx.preference.Preference
android:icon="@drawable/ic_tracking_protection_enabled" android:icon="@drawable/ic_tracking_protection_enabled"
android:key="@string/pref_key_tracking_protection_settings" android:key="@string/pref_key_tracking_protection_settings"
app:isPreferenceVisible="false"
android:title="@string/preference_enhanced_tracking_protection" /> android:title="@string/preference_enhanced_tracking_protection" />
<androidx.preference.Preference <androidx.preference.Preference
...@@ -123,6 +125,7 @@ ...@@ -123,6 +125,7 @@
<androidx.preference.Preference <androidx.preference.Preference
android:icon="@drawable/ic_data_collection" android:icon="@drawable/ic_data_collection"
android:key="@string/pref_key_data_choices" android:key="@string/pref_key_data_choices"
app:isPreferenceVisible="false"
android:title="@string/preferences_data_collection" /> android:title="@string/preferences_data_collection" />
</androidx.preference.PreferenceCategory> </androidx.preference.PreferenceCategory>
...@@ -141,6 +144,7 @@ ...@@ -141,6 +144,7 @@
android:defaultValue="false" android:defaultValue="false"
android:icon="@drawable/ic_open_in_app" android:icon="@drawable/ic_open_in_app"
android:key="@string/pref_key_open_links_in_external_app" android:key="@string/pref_key_open_links_in_external_app"
app:isPreferenceVisible="false"
android:title="@string/preferences_open_links_in_apps" /> android:title="@string/preferences_open_links_in_apps" />
<androidx.preference.SwitchPreference <androidx.preference.SwitchPreference
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment