Also add a way to hide the setting to the user

This commit is contained in:
Benoit Marty 2022-02-14 15:37:14 +01:00 committed by Benoit Marty
parent 5cfcd65b38
commit b12c890191
2 changed files with 5 additions and 2 deletions

View File

@ -42,7 +42,9 @@
<!-- Default preference values -->
<!-- If set to true, bubbles will be enabled by default in the preference -->
<!-- If set to true, bubbles setting will be visible to the user in the preference -->
<bool name="settings_interface_bubble_visible">true</bool>
<!-- If set to true, bubbles will be enabled by default -->
<bool name="settings_interface_bubble_default">false</bool>
</resources>

View File

@ -85,7 +85,8 @@
<im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="@bool/settings_interface_bubble_default"
android:key="SETTINGS_INTERFACE_BUBBLE_KEY"
android:title="@string/message_bubbles" />
android:title="@string/message_bubbles"
app:isPreferenceVisible="@bool/settings_interface_bubble_visible" />
<im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="true"