aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/xml/preferences.xml
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-01 10:22:24 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-01 10:22:24 +0200
commitffd08658e1a9333b6af896aa3fc853c5184fc571 (patch)
tree3961115c310abb94c08344db719cdb316da96805 /src/main/res/xml/preferences.xml
parent7b6d679ea2c8557d732fdd79021ef3d2b7d84304 (diff)
put settings defaults into resource file
Diffstat (limited to 'src/main/res/xml/preferences.xml')
-rw-r--r--src/main/res/xml/preferences.xml70
1 files changed, 35 insertions, 35 deletions
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" />