1<?xml version="1.0" encoding="utf-8"?>
2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
3 android:background="?attr/color_background_secondary">
4
5 <PreferenceCategory android:title="@string/pref_general">
6 <CheckBoxPreference
7 android:defaultValue="true"
8 android:key="grant_new_contacts"
9 android:summary="@string/pref_grant_presence_updates_summary"
10 android:title="@string/pref_grant_presence_updates"/>
11
12 <ListPreference
13 android:defaultValue="@string/default_resource"
14 android:entries="@array/resources"
15 android:entryValues="@array/resources"
16 android:key="resource"
17 android:summary="@string/pref_xmpp_resource_summary"
18 android:title="@string/pref_xmpp_resource"/>
19 </PreferenceCategory>
20 <PreferenceCategory android:title="@string/pref_privacy">
21 <CheckBoxPreference
22 android:defaultValue="true"
23 android:key="confirm_messages"
24 android:summary="@string/pref_confirm_messages_summary"
25 android:title="@string/pref_confirm_messages"/>
26
27 <CheckBoxPreference
28 android:defaultValue="false"
29 android:key="chat_states"
30 android:summary="@string/pref_chat_states_summary"
31 android:title="@string/pref_chat_states"/>
32 <CheckBoxPreference
33 android:defaultValue="false"
34 android:key="last_activity"
35 android:title="@string/pref_broadcast_last_activity"
36 android:summary="@string/pref_broadcast_last_activity_summary"/>
37 </PreferenceCategory>
38 <PreferenceCategory android:title="@string/pref_notification_settings">
39 <CheckBoxPreference
40 android:defaultValue="true"
41 android:key="show_notification"
42 android:summary="@string/pref_notifications_summary"
43 android:title="@string/pref_notifications"/>
44 <CheckBoxPreference
45 android:defaultValue="true"
46 android:dependency="show_notification"
47 android:key="vibrate_on_notification"
48 android:summary="@string/pref_vibrate_summary"
49 android:title="@string/pref_vibrate"/>
50 <CheckBoxPreference
51 android:defaultValue="true"
52 android:dependency="show_notification"
53 android:key="led"
54 android:title="@string/pref_led"
55 android:summary="@string/pref_led_summary"/>
56 <RingtonePreference
57 android:defaultValue="content://settings/system/notification_sound"
58 android:dependency="show_notification"
59 android:key="notification_ringtone"
60 android:ringtoneType="notification"
61 android:summary="@string/pref_sound_summary"
62 android:title="@string/pref_sound"/>
63 <PreferenceScreen
64 android:dependency="show_notification"
65 android:key="quiet_hours"
66 android:summary="@string/pref_quiet_hours_summary"
67 android:title="@string/title_pref_quiet_hours">
68 <CheckBoxPreference
69 android:defaultValue="false"
70 android:key="enable_quiet_hours"
71 android:summary="@string/pref_quiet_hours_summary"
72 android:title="@string/title_pref_enable_quiet_hours"/>
73 <eu.siacs.conversations.ui.TimePreference
74 android:dependency="enable_quiet_hours"
75 android:key="quiet_hours_start"
76 android:negativeButtonText="@string/cancel"
77 android:positiveButtonText="@string/set"
78 android:title="@string/title_pref_quiet_hours_start_time"/>
79 <eu.siacs.conversations.ui.TimePreference
80 android:dependency="enable_quiet_hours"
81 android:key="quiet_hours_end"
82 android:negativeButtonText="@string/cancel"
83 android:positiveButtonText="@string/set"
84 android:title="@string/title_pref_quiet_hours_end_time"/>
85 </PreferenceScreen>
86 <ListPreference
87 android:dependency="show_notification"
88 android:key="grace_period_length"
89 android:title="@string/pref_notification_grace_period"
90 android:summary="@string/pref_notification_grace_period_summary"
91 android:defaultValue="144"
92 android:entries="@array/grace_periods"
93 android:entryValues="@array/grace_periods_values"
94 />
95 </PreferenceCategory>
96 <PreferenceCategory android:title="@string/pref_attachments">
97 <ListPreference
98 android:defaultValue="524288"
99 android:entries="@array/filesizes"
100 android:entryValues="@array/filesizes_values"
101 android:key="auto_accept_file_size"
102 android:summary="@string/pref_accept_files_summary"
103 android:title="@string/pref_accept_files"/>
104 <ListPreference
105 android:defaultValue="auto"
106 android:entries="@array/picture_compression_entries"
107 android:entryValues="@array/picture_compression_values"
108 android:key="picture_compression"
109 android:summary="@string/pref_picture_compression_summary"
110 android:title="@string/pref_picture_compression"/>
111 <CheckBoxPreference
112 android:defaultValue="false"
113 android:key="return_to_previous"
114 android:title="@string/pref_return_to_previous"
115 android:summary="@string/pref_return_to_previous_summary"/>
116 </PreferenceCategory>
117 <PreferenceCategory android:title="@string/pref_ui_options">
118 <ListPreference
119 android:defaultValue="light"
120 android:entries="@array/themes"
121 android:entryValues="@array/themes_values"
122 android:key="theme"
123 android:summary="@string/pref_theme_options_summary"
124 android:title="@string/pref_theme_options"/>
125 <CheckBoxPreference
126 android:defaultValue="true"
127 android:key="use_subject"
128 android:summary="@string/pref_conference_name_summary"
129 android:title="@string/pref_conference_name"/>
130 <CheckBoxPreference
131 android:defaultValue="true"
132 android:key="use_green_background"
133 android:summary="@string/pref_use_green_background_summary"
134 android:title="@string/pref_use_green_background"/>
135 <CheckBoxPreference
136 android:defaultValue="false"
137 android:key="use_larger_font"
138 android:summary="@string/pref_use_larger_font_summary"
139 android:title="@string/pref_use_larger_font"/>
140 <CheckBoxPreference
141 android:defaultValue="false"
142 android:key="send_button_status"
143 android:summary="@string/pref_use_send_button_to_indicate_status_summary"
144 android:title="@string/pref_use_send_button_to_indicate_status"/>
145 <ListPreference
146 android:defaultValue="recent"
147 android:dialogTitle="@string/choose_quick_action"
148 android:entries="@array/quick_actions"
149 android:entryValues="@array/quick_action_values"
150 android:key="quick_action"
151 android:summary="@string/pref_quick_action_summary"
152 android:title="@string/pref_quick_action"/>
153 <CheckBoxPreference
154 android:defaultValue="false"
155 android:key="show_dynamic_tags"
156 android:summary="@string/pref_show_dynamic_tags_summary"
157 android:title="@string/pref_show_dynamic_tags"/>
158 </PreferenceCategory>
159 <PreferenceCategory
160 android:key="advanced"
161 android:title="@string/pref_advanced_options">
162 <PreferenceScreen
163 android:key="expert"
164 android:summary="@string/pref_expert_options_summary"
165 android:title="@string/pref_expert_options">
166 <PreferenceCategory android:title="@string/pref_security_settings">
167 <CheckBoxPreference
168 android:defaultValue="false"
169 android:key="dont_save_encrypted"
170 android:summary="@string/pref_dont_save_encrypted_summary"
171 android:title="@string/pref_dont_save_encrypted"/>
172 <CheckBoxPreference
173 android:defaultValue="false"
174 android:key="dont_trust_system_cas"
175 android:summary="@string/pref_dont_trust_system_cas_summary"
176 android:title="@string/pref_dont_trust_system_cas_title"/>
177 <Preference
178 android:key="remove_trusted_certificates"
179 android:summary="@string/pref_remove_trusted_certificates_summary"
180 android:title="@string/pref_remove_trusted_certificates_title"/>
181 <CheckBoxPreference
182 android:defaultValue="true"
183 android:key="allow_message_correction"
184 android:title="@string/pref_allow_message_correction"
185 android:summary="@string/pref_allow_message_correction_summary"/>
186 <Preference
187 android:key="delete_omemo_identities"
188 android:title="@string/pref_delete_omemo_identities"
189 android:summary="@string/pref_delete_omemo_identities_summary"/>
190 </PreferenceCategory>
191 <PreferenceCategory
192 android:key="connection_options"
193 android:title="@string/pref_connection_options">
194 <CheckBoxPreference
195 android:defaultValue="false"
196 android:key="use_tor"
197 android:summary="@string/pref_use_tor_summary"
198 android:title="@string/pref_use_tor"/>
199 <CheckBoxPreference
200 android:defaultValue="false"
201 android:key="show_connection_options"
202 android:summary="@string/pref_show_connection_options_summary"
203 android:title="@string/pref_show_connection_options"/>
204 </PreferenceCategory>
205 <PreferenceCategory android:title="@string/pref_input_options">
206 <CheckBoxPreference
207 android:defaultValue="false"
208 android:key="enter_is_send"
209 android:summary="@string/pref_enter_is_send_summary"
210 android:title="@string/pref_enter_is_send"/>
211 <CheckBoxPreference
212 android:defaultValue="false"
213 android:key="display_enter_key"
214 android:summary="@string/pref_display_enter_key_summary"
215 android:title="@string/pref_display_enter_key"/>
216 </PreferenceCategory>
217 <PreferenceCategory android:title="@string/pref_presence_settings">
218 <CheckBoxPreference
219 android:defaultValue="false"
220 android:key="manually_change_presence"
221 android:title="@string/pref_manually_change_presence"
222 android:summary="@string/pref_manually_change_presence_summary"
223 android:disableDependentsState="true"/>
224 <CheckBoxPreference
225 android:defaultValue="false"
226 android:key="away_when_screen_off"
227 android:summary="@string/pref_away_when_screen_off_summary"
228 android:title="@string/pref_away_when_screen_off"
229 android:dependency="manually_change_presence"/>
230 <CheckBoxPreference
231 android:defaultValue="false"
232 android:key="xa_on_silent_mode"
233 android:summary="@string/pref_xa_on_silent_mode_summary"
234 android:title="@string/pref_xa_on_silent_mode"
235 android:dependency="manually_change_presence"/>
236 <CheckBoxPreference
237 android:dependency="xa_on_silent_mode"
238 android:defaultValue="false"
239 android:key="treat_vibrate_as_silent"
240 android:title="@string/pref_treat_vibrate_as_silent"
241 android:summary="@string/pref_treat_vibrate_as_silent_summary"/>
242 </PreferenceCategory>
243 <PreferenceCategory android:title="@string/pref_expert_options_other">
244 <CheckBoxPreference
245 android:key="autojoin"
246 android:defaultValue="true"
247 android:title="@string/pref_autojoin"
248 android:summary="@string/pref_autojoin_summary"
249 />
250 <CheckBoxPreference
251 android:defaultValue="false"
252 android:key="indicate_received"
253 android:summary="@string/pref_use_indicate_received_summary"
254 android:title="@string/pref_use_indicate_received"/>
255 <CheckBoxPreference
256 android:defaultValue="false"
257 android:key="keep_foreground_service"
258 android:summary="@string/pref_keep_foreground_service_summary"
259 android:title="@string/pref_keep_foreground_service"/>
260 <Preference
261 android:key="export_logs"
262 android:summary="@string/pref_export_logs_summary"
263 android:title="@string/pref_export_logs"/>
264 </PreferenceCategory>
265 </PreferenceScreen>
266
267 <CheckBoxPreference
268 android:defaultValue="false"
269 android:key="never_send"
270 android:summary="@string/pref_never_send_crash_summary"
271 android:title="@string/pref_never_send_crash"/>
272 </PreferenceCategory>
273 <eu.siacs.conversations.ui.AboutPreference
274 android:summary="@string/pref_about_conversations_summary"
275 android:title="@string/title_activity_about"/>
276</PreferenceScreen>