Change defaults for some settings

This commit is contained in:
Jarno Rankinen 2023-10-07 13:59:26 +03:00
parent 031cfbe950
commit 79eba0d041
3 changed files with 12 additions and 12 deletions

View File

@ -39,15 +39,15 @@
<!-- Level 1: Labs --> <!-- Level 1: Labs -->
<bool name="settings_labs_deferred_dm_visible">true</bool> <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">true</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>
<bool name="settings_labs_hide_shields_default">true</bool> <bool name="settings_labs_hide_shields_default">true</bool>
<bool name="settings_labs_new_session_manager_default">false</bool> <bool name="settings_labs_new_session_manager_default">true</bool>
<bool name="settings_labs_new_session_manager_visible">true</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_default">true</bool>
<bool name="settings_labs_client_info_recording_visible">true</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_visible">true</bool>
<bool name="settings_timeline_show_live_sender_info_default">false</bool> <bool name="settings_timeline_show_live_sender_info_default">true</bool>
<bool name="settings_labs_rich_text_editor_visible">true</bool> <bool name="settings_labs_rich_text_editor_visible">true</bool>
<bool name="settings_labs_rich_text_editor_default">false</bool> <bool name="settings_labs_rich_text_editor_default">false</bool>
<bool name="settings_labs_enable_voice_broadcast_visible">true</bool> <bool name="settings_labs_enable_voice_broadcast_visible">true</bool>
@ -59,6 +59,6 @@
<!-- Level 1: Legals --> <!-- Level 1: Legals -->
<!-- Level 3: Security & Privacy, Sessions --> <!-- Level 3: Security & Privacy, Sessions -->
<bool name="settings_session_manager_show_ip_address">false</bool> <bool name="settings_session_manager_show_ip_address">true</bool>
</resources> </resources>

View File

@ -1126,7 +1126,7 @@ class VectorPreferences @Inject constructor(
* Indicates whether or not thread messages are enabled. * Indicates whether or not thread messages are enabled.
*/ */
fun areThreadMessagesEnabled(): Boolean { fun areThreadMessagesEnabled(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_LABS_ENABLE_THREAD_MESSAGES, getDefault(R.bool.settings_labs_thread_messages_default)) return defaultPrefs.getBoolean(SETTINGS_LABS_ENABLE_THREAD_MESSAGES, false)
} }
/** /**
@ -1144,7 +1144,7 @@ class VectorPreferences @Inject constructor(
* Should be removed when Threads flag will be removed * Should be removed when Threads flag will be removed
*/ */
fun wasThreadFlagChangedManually(): Boolean { fun wasThreadFlagChangedManually(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_LABS_THREAD_MESSAGES_CHANGED_BY_USER, false) return defaultPrefs.getBoolean(SETTINGS_LABS_THREAD_MESSAGES_CHANGED_BY_USER, true)
} }
/** /**
@ -1238,18 +1238,18 @@ class VectorPreferences @Inject constructor(
* Indicates whether or not new session manager screens are enabled. * Indicates whether or not new session manager screens are enabled.
*/ */
fun isNewSessionManagerEnabled(): Boolean { fun isNewSessionManagerEnabled(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_LABS_NEW_SESSION_MANAGER_KEY, getDefault(R.bool.settings_labs_new_session_manager_default)) return defaultPrefs.getBoolean(SETTINGS_LABS_NEW_SESSION_MANAGER_KEY, true)
} }
/** /**
* Indicates whether or not client info recording is enabled. * Indicates whether or not client info recording is enabled.
*/ */
fun isClientInfoRecordingEnabled(): Boolean { fun isClientInfoRecordingEnabled(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_LABS_CLIENT_INFO_RECORDING_KEY, getDefault(R.bool.settings_labs_client_info_recording_default)) return defaultPrefs.getBoolean(SETTINGS_LABS_CLIENT_INFO_RECORDING_KEY, true)
} }
fun showLiveSenderInfo(): Boolean { fun showLiveSenderInfo(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_TIMELINE_SHOW_LIVE_SENDER_INFO, getDefault(R.bool.settings_timeline_show_live_sender_info_default)) return defaultPrefs.getBoolean(SETTINGS_TIMELINE_SHOW_LIVE_SENDER_INFO, true)
} }
fun isRichTextEditorEnabled(): Boolean { fun isRichTextEditorEnabled(): Boolean {
@ -1262,7 +1262,7 @@ class VectorPreferences @Inject constructor(
} }
fun showIpAddressInSessionManagerScreens(): Boolean { fun showIpAddressInSessionManagerScreens(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_SESSION_MANAGER_SHOW_IP_ADDRESS, getDefault(R.bool.settings_session_manager_show_ip_address)) return defaultPrefs.getBoolean(SETTINGS_SESSION_MANAGER_SHOW_IP_ADDRESS, true)
} }
fun setIpAddressVisibilityInDeviceManagerScreens(isVisible: Boolean) { fun setIpAddressVisibilityInDeviceManagerScreens(isVisible: Boolean) {

View File

@ -51,7 +51,7 @@
android:title="@string/settings_rageshake"> android:title="@string/settings_rageshake">
<im.vector.app.core.preference.VectorSwitchPreference <im.vector.app.core.preference.VectorSwitchPreference
android:defaultValue="true" android:defaultValue="false"
android:key="SETTINGS_USE_RAGE_SHAKE_KEY" android:key="SETTINGS_USE_RAGE_SHAKE_KEY"
android:title="@string/send_bug_report_rage_shake" /> android:title="@string/send_bug_report_rage_shake" />