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="@bool/notifications_from_strangers"
46 android:key="notifications_from_strangers"
47 android:dependency="show_notification"
48 android:title="@string/pref_notifications_from_strangers"
49 android:summary="@string/pref_notifications_from_strangers_summary"/>
50 <CheckBoxPreference
51 android:defaultValue="@bool/headsup_notifications"
52 android:dependency="show_notification"
53 android:key="notification_headsup"
54 android:title="@string/pref_headsup_notifications"
55 android:summary="@string/pref_headsup_notifications_summary"/>
56 <CheckBoxPreference
57 android:defaultValue="true"
58 android:dependency="show_notification"
59 android:key="vibrate_on_notification"
60 android:summary="@string/pref_vibrate_summary"
61 android:title="@string/pref_vibrate"/>
62 <CheckBoxPreference
63 android:defaultValue="true"
64 android:dependency="show_notification"
65 android:key="led"
66 android:title="@string/pref_led"
67 android:summary="@string/pref_led_summary"/>
68 <RingtonePreference
69 android:defaultValue="content://settings/system/notification_sound"
70 android:dependency="show_notification"
71 android:key="notification_ringtone"
72 android:ringtoneType="notification"
73 android:summary="@string/pref_sound_summary"
74 android:title="@string/pref_sound"/>
75 <PreferenceScreen
76 android:dependency="show_notification"
77 android:key="quiet_hours"
78 android:summary="@string/pref_quiet_hours_summary"
79 android:title="@string/title_pref_quiet_hours">
80 <CheckBoxPreference
81 android:defaultValue="false"
82 android:key="enable_quiet_hours"
83 android:summary="@string/pref_quiet_hours_summary"
84 android:title="@string/title_pref_enable_quiet_hours"/>
85 <eu.siacs.conversations.ui.TimePreference
86 android:dependency="enable_quiet_hours"
87 android:key="quiet_hours_start"
88 android:negativeButtonText="@string/cancel"
89 android:positiveButtonText="@string/set"
90 android:title="@string/title_pref_quiet_hours_start_time"/>
91 <eu.siacs.conversations.ui.TimePreference
92 android:dependency="enable_quiet_hours"
93 android:key="quiet_hours_end"
94 android:negativeButtonText="@string/cancel"
95 android:positiveButtonText="@string/set"
96 android:title="@string/title_pref_quiet_hours_end_time"/>
97 </PreferenceScreen>
98 <ListPreference
99 android:dependency="show_notification"
100 android:key="grace_period_length"
101 android:title="@string/pref_notification_grace_period"
102 android:summary="@string/pref_notification_grace_period_summary"
103 android:defaultValue="144"
104 android:entries="@array/grace_periods"
105 android:entryValues="@array/grace_periods_values"
106 />
107 </PreferenceCategory>
108 <PreferenceCategory android:title="@string/pref_attachments">
109 <ListPreference
110 android:defaultValue="524288"
111 android:entries="@array/filesizes"
112 android:entryValues="@array/filesizes_values"
113 android:key="auto_accept_file_size"
114 android:summary="@string/pref_accept_files_summary"
115 android:title="@string/pref_accept_files"/>
116 <ListPreference
117 android:defaultValue="auto"
118 android:entries="@array/picture_compression_entries"
119 android:entryValues="@array/picture_compression_values"
120 android:key="picture_compression"
121 android:summary="@string/pref_picture_compression_summary"
122 android:title="@string/pref_picture_compression"/>
123 <CheckBoxPreference
124 android:defaultValue="false"
125 android:key="return_to_previous"
126 android:title="@string/pref_return_to_previous"
127 android:summary="@string/pref_return_to_previous_summary"/>
128 </PreferenceCategory>
129 <PreferenceCategory android:title="@string/pref_ui_options">
130 <ListPreference
131 android:defaultValue="light"
132 android:entries="@array/themes"
133 android:entryValues="@array/themes_values"
134 android:key="theme"
135 android:summary="@string/pref_theme_options_summary"
136 android:title="@string/pref_theme_options"/>
137 <CheckBoxPreference
138 android:defaultValue="true"
139 android:key="use_subject"
140 android:summary="@string/pref_conference_name_summary"
141 android:title="@string/pref_conference_name"/>
142 <CheckBoxPreference
143 android:defaultValue="true"
144 android:key="use_green_background"
145 android:summary="@string/pref_use_green_background_summary"
146 android:title="@string/pref_use_green_background"/>
147 <CheckBoxPreference
148 android:defaultValue="false"
149 android:key="use_larger_font"
150 android:summary="@string/pref_use_larger_font_summary"
151 android:title="@string/pref_use_larger_font"/>
152 <CheckBoxPreference
153 android:defaultValue="false"
154 android:key="send_button_status"
155 android:summary="@string/pref_use_send_button_to_indicate_status_summary"
156 android:title="@string/pref_use_send_button_to_indicate_status"/>
157 <ListPreference
158 android:defaultValue="recent"
159 android:dialogTitle="@string/choose_quick_action"
160 android:entries="@array/quick_actions"
161 android:entryValues="@array/quick_action_values"
162 android:key="quick_action"
163 android:summary="@string/pref_quick_action_summary"
164 android:title="@string/pref_quick_action"/>
165 <CheckBoxPreference
166 android:defaultValue="false"
167 android:key="show_dynamic_tags"
168 android:summary="@string/pref_show_dynamic_tags_summary"
169 android:title="@string/pref_show_dynamic_tags"/>
170 </PreferenceCategory>
171 <PreferenceCategory
172 android:key="advanced"
173 android:title="@string/pref_advanced_options">
174 <PreferenceScreen
175 android:key="expert"
176 android:summary="@string/pref_expert_options_summary"
177 android:title="@string/pref_expert_options">
178 <PreferenceCategory android:title="@string/pref_security_settings"
179 android:key="security_options">
180 <CheckBoxPreference
181 android:defaultValue="true"
182 android:key="btbv"
183 android:title="@string/pref_blind_trust_before_verification"
184 android:summary="@string/pref_blind_trust_before_verification_summary"/>
185 <ListPreference
186 android:key="automatic_message_deletion"
187 android:title="@string/pref_automatically_delete_messages"
188 android:summary="@string/pref_automatically_delete_messages_description"
189 android:defaultValue="0"
190 android:entries="@array/automatic_message_deletion"
191 android:entryValues="@array/automatic_message_deletion_values" />
192 <CheckBoxPreference
193 android:defaultValue="false"
194 android:key="dont_trust_system_cas"
195 android:summary="@string/pref_dont_trust_system_cas_summary"
196 android:title="@string/pref_dont_trust_system_cas_title"/>
197 <Preference
198 android:key="remove_trusted_certificates"
199 android:summary="@string/pref_remove_trusted_certificates_summary"
200 android:title="@string/pref_remove_trusted_certificates_title"/>
201 <CheckBoxPreference
202 android:defaultValue="true"
203 android:key="allow_message_correction"
204 android:title="@string/pref_allow_message_correction"
205 android:summary="@string/pref_allow_message_correction_summary"/>
206 <Preference
207 android:key="clean_cache"
208 android:summary="@string/pref_clean_cache_summary"
209 android:title="@string/pref_clean_cache"/>
210 <Preference
211 android:key="clean_private_storage"
212 android:summary="@string/pref_clean_private_storage_summary"
213 android:title="@string/pref_clean_private_storage"/>
214 <Preference
215 android:key="delete_omemo_identities"
216 android:title="@string/pref_delete_omemo_identities"
217 android:summary="@string/pref_delete_omemo_identities_summary"/>
218 </PreferenceCategory>
219 <PreferenceCategory
220 android:key="connection_options"
221 android:title="@string/pref_connection_options">
222 <CheckBoxPreference
223 android:defaultValue="false"
224 android:key="use_tor"
225 android:summary="@string/pref_use_tor_summary"
226 android:title="@string/pref_use_tor"/>
227 <CheckBoxPreference
228 android:defaultValue="false"
229 android:key="show_connection_options"
230 android:summary="@string/pref_show_connection_options_summary"
231 android:title="@string/pref_show_connection_options"/>
232 </PreferenceCategory>
233 <PreferenceCategory android:title="@string/pref_input_options">
234 <CheckBoxPreference
235 android:defaultValue="@bool/enter_is_send"
236 android:key="enter_is_send"
237 android:summary="@string/pref_enter_is_send_summary"
238 android:title="@string/pref_enter_is_send"/>
239 <CheckBoxPreference
240 android:defaultValue="false"
241 android:key="display_enter_key"
242 android:summary="@string/pref_display_enter_key_summary"
243 android:title="@string/pref_display_enter_key"/>
244 </PreferenceCategory>
245 <PreferenceCategory android:title="@string/pref_presence_settings">
246 <CheckBoxPreference
247 android:defaultValue="false"
248 android:key="manually_change_presence"
249 android:title="@string/pref_manually_change_presence"
250 android:summary="@string/pref_manually_change_presence_summary"
251 android:disableDependentsState="true"/>
252 <CheckBoxPreference
253 android:defaultValue="false"
254 android:key="away_when_screen_off"
255 android:summary="@string/pref_away_when_screen_off_summary"
256 android:title="@string/pref_away_when_screen_off"
257 android:dependency="manually_change_presence"/>
258 <CheckBoxPreference
259 android:defaultValue="false"
260 android:key="xa_on_silent_mode"
261 android:summary="@string/pref_xa_on_silent_mode_summary"
262 android:title="@string/pref_xa_on_silent_mode"
263 android:dependency="manually_change_presence"/>
264 <CheckBoxPreference
265 android:dependency="xa_on_silent_mode"
266 android:defaultValue="false"
267 android:key="treat_vibrate_as_silent"
268 android:title="@string/pref_treat_vibrate_as_silent"
269 android:summary="@string/pref_treat_vibrate_as_silent_summary"/>
270 </PreferenceCategory>
271 <PreferenceCategory android:title="@string/pref_expert_options_other">
272 <CheckBoxPreference
273 android:key="autojoin"
274 android:defaultValue="true"
275 android:title="@string/pref_autojoin"
276 android:summary="@string/pref_autojoin_summary"
277 />
278 <CheckBoxPreference
279 android:defaultValue="false"
280 android:key="indicate_received"
281 android:summary="@string/pref_use_indicate_received_summary"
282 android:title="@string/pref_use_indicate_received"/>
283 <CheckBoxPreference
284 android:defaultValue="false"
285 android:key="enable_foreground_service"
286 android:summary="@string/pref_keep_foreground_service_summary"
287 android:title="@string/pref_keep_foreground_service"/>
288 <Preference
289 android:key="export_logs"
290 android:summary="@string/pref_export_logs_summary"
291 android:title="@string/pref_export_logs"/>
292 </PreferenceCategory>
293 </PreferenceScreen>
294
295 <CheckBoxPreference
296 android:defaultValue="false"
297 android:key="never_send"
298 android:summary="@string/pref_never_send_crash_summary"
299 android:title="@string/pref_never_send_crash"/>
300 </PreferenceCategory>
301 <eu.siacs.conversations.ui.AboutPreference
302 android:summary="@string/pref_about_conversations_summary"
303 android:title="@string/title_activity_about"/>
304</PreferenceScreen>