Add visibility setting field for lab setting

This commit is contained in:
Florian Renaud 2022-09-21 09:27:37 +02:00
parent 3786bd9c65
commit dd92bb756a
2 changed files with 4 additions and 2 deletions

View file

@ -37,6 +37,7 @@
<bool name="settings_ignored_users_visible">true</bool> <bool name="settings_ignored_users_visible">true</bool>
<!-- Level 1: Labs --> <!-- Level 1: Labs -->
<bool name="settings_labs_deferred_dm_visible">true</bool>
<bool name="settings_labs_deferred_dm_default">true</bool> <bool name="settings_labs_deferred_dm_default">true</bool>
<bool name="settings_labs_thread_messages_default">false</bool> <bool name="settings_labs_thread_messages_default">false</bool>
<bool name="settings_labs_new_app_layout_default">true</bool> <bool name="settings_labs_new_app_layout_default">true</bool>

View file

@ -47,8 +47,8 @@
<im.vector.app.core.preference.VectorSwitchPreference <im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="false" android:defaultValue="false"
android:persistent="false"
android:key="SETTINGS_LABS_MSC3061_SHARE_KEYS_HISTORY" android:key="SETTINGS_LABS_MSC3061_SHARE_KEYS_HISTORY"
android:persistent="false"
android:summary="@string/labs_enable_msc3061_share_history_desc" android:summary="@string/labs_enable_msc3061_share_history_desc"
android:title="@string/labs_enable_msc3061_share_history" /> android:title="@string/labs_enable_msc3061_share_history" />
@ -93,6 +93,7 @@
android:defaultValue="@bool/settings_labs_deferred_dm_default" android:defaultValue="@bool/settings_labs_deferred_dm_default"
android:key="SETTINGS_LABS_DEFERRED_DM_KEY" android:key="SETTINGS_LABS_DEFERRED_DM_KEY"
android:summary="@string/labs_enable_deferred_dm_summary" android:summary="@string/labs_enable_deferred_dm_summary"
android:title="@string/labs_enable_deferred_dm_title" /> android:title="@string/labs_enable_deferred_dm_title"
app:isPreferenceVisible="@bool/settings_labs_deferred_dm_visible" />
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>