Also add a way to hide the setting to the user
This commit is contained in:
parent
5cfcd65b38
commit
b12c890191
|
@ -42,7 +42,9 @@
|
||||||
|
|
||||||
<!-- Default preference values -->
|
<!-- 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>
|
<bool name="settings_interface_bubble_default">false</bool>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -85,7 +85,8 @@
|
||||||
<im.vector.app.core.preference.VectorSwitchPreference
|
<im.vector.app.core.preference.VectorSwitchPreference
|
||||||
android:defaultValue="@bool/settings_interface_bubble_default"
|
android:defaultValue="@bool/settings_interface_bubble_default"
|
||||||
android:key="SETTINGS_INTERFACE_BUBBLE_KEY"
|
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
|
<im.vector.app.core.preference.VectorSwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
|
|
Loading…
Reference in New Issue