Adding settings for visibility of labs flags

This commit is contained in:
Maxime NATUREL 2022-10-14 13:45:23 +02:00
parent 1b41b8b538
commit 86132219d8
2 changed files with 6 additions and 2 deletions

View file

@ -42,7 +42,9 @@
<bool name="settings_labs_thread_messages_default">false</bool>
<bool name="settings_labs_new_app_layout_default">true</bool>
<bool name="settings_labs_new_session_manager_default">false</bool>
<bool name="settings_labs_new_session_manager_visible">true</bool>
<bool name="settings_labs_client_info_recording_default">false</bool>
<bool name="settings_labs_client_info_recording_visible">true</bool>
<bool name="settings_timeline_show_live_sender_info_visible">true</bool>
<bool name="settings_timeline_show_live_sender_info_default">false</bool>
<bool name="settings_labs_rich_text_editor_visible">true</bool>

View file

@ -107,12 +107,14 @@
android:defaultValue="@bool/settings_labs_new_session_manager_default"
android:key="SETTINGS_LABS_NEW_SESSION_MANAGER_KEY"
android:summary="@string/labs_enable_session_manager_summary"
android:title="@string/labs_enable_session_manager_title" />
android:title="@string/labs_enable_session_manager_title"
app:isPreferenceVisible="@bool/settings_labs_new_session_manager_visible" />
<im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="@bool/settings_labs_client_info_recording_default"
android:key="SETTINGS_LABS_CLIENT_INFO_RECORDING_KEY"
android:summary="@string/labs_enable_client_info_recording_summary"
android:title="@string/labs_enable_client_info_recording_title" />
android:title="@string/labs_enable_client_info_recording_title"
app:isPreferenceVisible="@bool/settings_labs_client_info_recording_visible" />
</androidx.preference.PreferenceScreen>