From 03a6a348c09cdfc7aefa88240cd91b1cd9af94f4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 23 Feb 2022 18:19:24 +0100 Subject: [PATCH] Add boolean for visibility of all settings at root level --- .../src/main/res/values/config-settings.xml | 36 ++++++++++++++++++- .../src/main/res/xml/vector_settings_root.xml | 30 ++++++++++------ 2 files changed, 55 insertions(+), 11 deletions(-) diff --git a/vector-config/src/main/res/values/config-settings.xml b/vector-config/src/main/res/values/config-settings.xml index 1feee73074..c7c7cb0ea5 100755 --- a/vector-config/src/main/res/values/config-settings.xml +++ b/vector-config/src/main/res/values/config-settings.xml @@ -1,11 +1,45 @@ - + + + + + true + true + true + true + true + true + true + true + true + true + + + + + + true false + + + + + + + + + + + + + + + diff --git a/vector/src/main/res/xml/vector_settings_root.xml b/vector/src/main/res/xml/vector_settings_root.xml index 520c4595ca..744694cf5f 100644 --- a/vector/src/main/res/xml/vector_settings_root.xml +++ b/vector/src/main/res/xml/vector_settings_root.xml @@ -5,7 +5,8 @@ + app:fragment="im.vector.app.features.settings.VectorSettingsGeneralFragment" + app:isPreferenceVisible="@bool/settings_root_general_visible" /> + app:fragment="im.vector.app.features.settings.notifications.VectorSettingsNotificationPreferenceFragment" + app:isPreferenceVisible="@bool/settings_root_notification_visible" /> + app:fragment="im.vector.app.features.settings.VectorSettingsPreferencesFragment" + app:isPreferenceVisible="@bool/settings_root_preferences_visible" /> + app:fragment="im.vector.app.features.settings.VectorSettingsVoiceVideoFragment" + app:isPreferenceVisible="@bool/settings_root_voice_video_visible" /> + app:fragment="im.vector.app.features.settings.ignored.VectorSettingsIgnoredUsersFragment" + app:isPreferenceVisible="@bool/settings_root_ignored_users_visible" /> + app:fragment="im.vector.app.features.settings.VectorSettingsSecurityPrivacyFragment" + app:isPreferenceVisible="@bool/settings_root_security_privacy_visible" /> + app:fragment="im.vector.app.features.settings.VectorSettingsLabsFragment" + app:isPreferenceVisible="@bool/settings_root_labs_visible" /> + app:fragment="im.vector.app.features.settings.VectorSettingsAdvancedSettingsFragment" + app:isPreferenceVisible="@bool/settings_root_advanced_visible" /> + app:fragment="im.vector.app.features.settings.VectorSettingsHelpAboutFragment" + app:isPreferenceVisible="@bool/settings_root_help_about_visible" /> + app:fragment="im.vector.app.features.settings.legals.LegalsFragment" + app:isPreferenceVisible="@bool/settings_root_legals_visible" /> \ No newline at end of file