aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/values/arrays.xml2
-rw-r--r--src/main/res/values/defaults.xml43
-rw-r--r--src/main/res/xml/preferences.xml70
3 files changed, 77 insertions, 38 deletions
diff --git a/src/main/res/values/arrays.xml b/src/main/res/values/arrays.xml
index d56b12bae..6c0784aef 100644
--- a/src/main/res/values/arrays.xml
+++ b/src/main/res/values/arrays.xml
@@ -17,7 +17,7 @@
<item>10 MiB</item>
</string-array>
<string-array name="filesizes_values">
- <item>1</item>
+ <item>0</item>
<item>262144</item>
<item>524288</item>
<item>1048576</item>
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml
index 46f313da9..e191286a1 100644
--- a/src/main/res/values/defaults.xml
+++ b/src/main/res/values/defaults.xml
@@ -3,8 +3,47 @@
<string name="default_resource" translatable="false">Phone</string>
<bool name="portrait_only">true</bool>
<bool name="enter_is_send">false</bool>
- <bool name="notifications_from_strangers">false</bool>
- <bool name="headsup_notifications">true</bool>
<bool name="dnd_on_silent_mode">false</bool>
<bool name="treat_vibrate_as_silent">false</bool>
+ <integer name="auto_accept_filesize_wifi">10485760</integer>
+ <integer name="auto_accept_filesize_mobile">524288</integer>
+ <integer name="auto_accept_filesize_roaming">0</integer>
+ <bool name="show_notification">true</bool>
+ <bool name="vibrate_on_notification">true</bool>
+ <bool name="led">true</bool>
+ <string name="notification_ringtone">content://settings/system/notification_sound</string>
+ <bool name="notifications_from_strangers">false</bool>
+ <bool name="headsup_notifications">true</bool>
+ <bool name="enable_quiet_hours">false</bool>
+ <bool name="manually_change_presence">true</bool>
+ <bool name="away_when_screen_off">false</bool>
+ <string name="picture_compression">auto</string>
+ <string name="image_compression">mid</string>
+ <string name="video_compression">mid</string>
+ <bool name="grant_new_contacts">true</bool>
+ <integer name="automatic_message_deletion">0</integer>
+ <bool name="confirm_messages">true</bool>
+ <bool name="allow_message_correction">true</bool>
+ <bool name="chat_states">true</bool>
+ <bool name="autojoin">true</bool>
+ <bool name="indicate_received">true</bool>
+ <bool name="use_tor">false</bool>
+ <bool name="show_connection_options">false</bool>
+ <bool name="last_activity">true</bool>
+ <bool name="dont_trust_system_cas">false</bool>
+ <bool name="btbv">true</bool>
+ <bool name="send_button_status">true</bool>
+ <string name="quick_action">recent</string>
+ <bool name="return_to_previous">false</bool>
+ <bool name="use_subject">true</bool>
+ <bool name="display_enter_key">false</bool>
+ <bool name="show_dynamic_tags">false</bool>
+ <integer name="grace_period">144</integer>
+ <bool name="use_larger_font">false</bool>
+ <bool name="presence_colored_names">false</bool>
+ <bool name="use_max_brightness">true</bool>
+ <bool name="auto_rotate">true</bool>
+ <bool name="use_white_background">false</bool>
+ <bool name="send_crashreport">true</bool>
+ <bool name="plain_text_logs">false</bool>
</resources> \ No newline at end of file
diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml
index a9b3439b7..60fa80f4a 100644
--- a/src/main/res/xml/preferences.xml
+++ b/src/main/res/xml/preferences.xml
@@ -6,27 +6,27 @@
android:key="userinterface"
android:title="@string/pref_ui_options">
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/use_white_background"
android:key="use_white_background"
android:summary="@string/pref_use_white_background_summary"
android:title="@string/pref_use_white_background" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/use_larger_font"
android:key="use_larger_font"
android:summary="@string/pref_use_larger_font_summary"
android:title="@string/pref_use_larger_font" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/send_button_status"
android:key="send_button_status"
android:summary="@string/pref_use_send_button_to_indicate_status_summary"
android:title="@string/pref_use_send_button_to_indicate_status" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/presence_colored_names"
android:key="presence_colored_names"
android:summary="@string/pref_use_colored_names_to_indicate_status_summary"
android:title="@string/pref_use_colored_names_to_indicate_status" />
<ListPreference
- android:defaultValue="recent"
+ android:defaultValue="@string/quick_action"
android:dialogTitle="@string/choose_quick_action"
android:entries="@array/quick_actions"
android:entryValues="@array/quick_action_values"
@@ -34,12 +34,12 @@
android:summary="@string/pref_quick_action_summary"
android:title="@string/pref_quick_action" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/use_max_brightness"
android:key="use_max_brightness"
android:summary="@string/pref_use_max_brightness_summary"
android:title="@string/pref_use_max_brightness" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/auto_rotate"
android:key="use_auto_rotate"
android:summary="@string/pref_use_auto_rotate_summary"
android:title="@string/pref_use_auto_rotate" />
@@ -50,7 +50,7 @@
android:key="notifications"
android:title="@string/pref_notification_settings">
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/show_notification"
android:key="show_notification"
android:summary="@string/pref_notifications_summary"
android:title="@string/pref_notifications" />
@@ -66,7 +66,7 @@
android:summary="@string/pref_quiet_hours_summary"
android:title="@string/title_pref_quiet_hours">
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/enable_quiet_hours"
android:key="enable_quiet_hours"
android:summary="@string/pref_quiet_hours_summary"
android:title="@string/title_pref_enable_quiet_hours" />
@@ -84,19 +84,19 @@
android:title="@string/title_pref_quiet_hours_end_time" />
</PreferenceScreen>
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/vibrate_on_notification"
android:dependency="show_notification"
android:key="vibrate_on_notification"
android:summary="@string/pref_vibrate_summary"
android:title="@string/pref_vibrate" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/led"
android:dependency="show_notification"
android:key="led"
android:summary="@string/pref_led_summary"
android:title="@string/pref_led" />
<RingtonePreference
- android:defaultValue="content://settings/system/notification_sound"
+ android:defaultValue="@string/notification_ringtone"
android:dependency="show_notification"
android:key="notification_ringtone"
android:ringtoneType="notification"
@@ -115,35 +115,35 @@
android:key="attachments"
android:title="@string/pref_attachments">
<ListPreference
- android:defaultValue="10485760"
+ android:defaultValue="@integer/auto_accept_filesize_wifi"
android:entries="@array/filesizes"
android:entryValues="@array/filesizes_values"
android:key="auto_accept_file_size_wifi"
android:summary="@string/pref_accept_files_summary_wifi"
android:title="@string/pref_accept_files_wifi" />
<ListPreference
- android:defaultValue="262144"
+ android:defaultValue="@integer/auto_accept_filesize_mobile"
android:entries="@array/filesizes"
android:entryValues="@array/filesizes_values"
android:key="auto_accept_file_size_mobile"
android:summary="@string/pref_accept_files_summary_mobile"
android:title="@string/pref_accept_files_mobile" />
<ListPreference
- android:defaultValue="1"
+ android:defaultValue="@integer/auto_accept_filesize_roaming"
android:entries="@array/filesizes"
android:entryValues="@array/filesizes_values"
android:key="auto_accept_file_size_roaming"
android:summary="@string/pref_accept_files_summary_mobileroaming"
android:title="@string/pref_accept_files_mobileroaming" />
<ListPreference
- android:defaultValue="high"
+ android:defaultValue="@string/image_compression"
android:entries="@array/image_compression_entries"
android:entryValues="@array/image_compression_values"
android:key="image_compression"
android:summary="@string/pref_picture_compression_summary"
android:title="@string/pref_picture_compression" />
<ListPreference
- android:defaultValue="high"
+ android:defaultValue="@string/video_compression"
android:entries="@array/video_compression_entries"
android:entryValues="@array/video_compression_values"
android:key="video_compression"
@@ -156,13 +156,13 @@
android:key="presence"
android:title="@string/pref_presence_settings">
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/manually_change_presence"
android:disableDependentsState="true"
android:key="manually_change_presence"
android:summary="@string/pref_manually_change_presence_summary"
android:title="@string/pref_manually_change_presence" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/away_when_screen_off"
android:dependency="manually_change_presence"
android:key="away_when_screen_off"
android:summary="@string/pref_away_when_screen_off_summary"
@@ -186,37 +186,37 @@
android:key="security"
android:title="@string/pref_security_settings">
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/grant_new_contacts"
android:key="grant_new_contacts"
android:summary="@string/pref_grant_presence_updates_summary"
android:title="@string/pref_grant_presence_updates" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/confirm_messages"
android:key="confirm_messages"
android:summary="@string/pref_confirm_messages_summary"
android:title="@string/pref_confirm_messages" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/chat_states"
android:key="chat_states"
android:summary="@string/pref_chat_states_summary"
android:title="@string/pref_chat_states" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/allow_message_correction"
android:key="allow_message_correction"
android:summary="@string/pref_allow_message_correction_summary"
android:title="@string/pref_allow_message_correction" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/indicate_received"
android:key="indicate_received"
android:summary="@string/pref_use_indicate_received_summary"
android:title="@string/pref_use_indicate_received" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/last_activity"
android:key="last_activity"
android:title="@string/pref_broadcast_last_activity"
android:summary="@string/pref_broadcast_last_activity_summary" />
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/send_crashreport"
android:key="crashreport"
android:summary="@string/pref_send_crash_summary"
android:title="@string/pref_send_crash" />
@@ -226,7 +226,7 @@
android:summary="@string/pref_export_logs_summary"
android:title="@string/pref_export_logs" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/plain_text_logs"
android:key="export_plain_text_logs"
android:summary="@string/pref_export_plain_text_logs_summary"
android:title="@string/pref_export_plain_text_logs" />
@@ -248,19 +248,19 @@
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_ui_options">
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/show_dynamic_tags"
android:key="show_dynamic_tags"
android:summary="@string/pref_show_dynamic_tags_summary"
android:title="@string/pref_show_dynamic_tags" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_security_settings">
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/btbv"
android:key="btbv"
android:title="@string/pref_blind_trust_before_verification"
android:summary="@string/pref_blind_trust_before_verification_summary" />
<ListPreference
- android:defaultValue="0"
+ android:defaultValue="@integer/automatic_message_deletion"
android:entries="@array/automatic_message_deletion"
android:entryValues="@array/automatic_message_deletion_values"
android:key="automatic_message_deletion"
@@ -271,7 +271,7 @@
android:title="@string/pref_delete_omemo_identities"
android:summary="@string/pref_delete_omemo_identities_summary" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/dont_trust_system_cas"
android:key="dont_trust_system_cas"
android:summary="@string/pref_dont_trust_system_cas_summary"
android:title="@string/pref_dont_trust_system_cas_title" />
@@ -284,12 +284,12 @@
android:key="connection_options"
android:title="@string/pref_connection_options">
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/use_tor"
android:key="use_tor"
android:summary="@string/pref_use_tor_summary"
android:title="@string/pref_use_tor" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/show_connection_options"
android:key="show_connection_options"
android:summary="@string/pref_show_connection_options_summary"
android:title="@string/pref_show_connection_options"/>
@@ -301,14 +301,14 @@
android:summary="@string/pref_enter_is_send_summary"
android:title="@string/pref_enter_is_send" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/display_enter_key"
android:key="display_enter_key"
android:summary="@string/pref_display_enter_key_summary"
android:title="@string/pref_display_enter_key" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_expert_options_other">
<CheckBoxPreference
- android:defaultValue="true"
+ android:defaultValue="@bool/autojoin"
android:key="autojoin"
android:summary="@string/pref_autojoin_summary"
android:title="@string/pref_autojoin" />