1<?xml version="1.0" encoding="utf-8"?>
2<PreferenceScreen
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 android:background="?attr/color_background_secondary"
5 android:key="main_screen">
6
7 <PreferenceCategory
8 android:key="general"
9 android:title="@string/pref_general">
10 <PreferenceScreen
11 android:key="huawei"
12 android:summary="@string/huawei_protected_apps_summary"
13 android:title="@string/huawei_protected_apps"
14 >
15 <intent
16 android:targetClass="com.huawei.systemmanager.optimize.process.ProtectActivity"
17 android:targetPackage="com.huawei.systemmanager"/>
18 </PreferenceScreen>
19 </PreferenceCategory>
20 <PreferenceCategory android:title="@string/pref_privacy">
21 <ListPreference
22 android:defaultValue="@string/omemo_setting_default"
23 android:entries="@array/omemo_setting_entries"
24 android:entryValues="@array/omemo_setting_entry_values"
25 android:key="omemo"
26 android:summary="@string/pref_omemo_setting_summary_default_on"
27 android:title="@string/pref_omemo_setting"
28 />
29 <CheckBoxPreference
30 android:defaultValue="@bool/confirm_messages"
31 android:key="confirm_messages"
32 android:summary="@string/pref_confirm_messages_summary"
33 android:title="@string/pref_confirm_messages"/>
34
35 <CheckBoxPreference
36 android:defaultValue="@bool/chat_states"
37 android:key="chat_states"
38 android:summary="@string/pref_chat_states_summary"
39 android:title="@string/pref_chat_states"/>
40 <CheckBoxPreference
41 android:defaultValue="@bool/last_activity"
42 android:key="last_activity"
43 android:summary="@string/pref_broadcast_last_activity_summary"
44 android:title="@string/pref_broadcast_last_activity"/>
45 </PreferenceCategory>
46 <PreferenceCategory android:title="@string/pref_notification_settings">
47 <CheckBoxPreference
48 android:defaultValue="@bool/show_notification"
49 android:key="show_notification"
50 android:summary="@string/pref_notifications_summary"
51 android:title="@string/pref_notifications"/>
52 <CheckBoxPreference
53 android:defaultValue="@bool/notifications_from_strangers"
54 android:dependency="show_notification"
55 android:key="notifications_from_strangers"
56 android:summary="@string/pref_notifications_from_strangers_summary"
57 android:title="@string/pref_notifications_from_strangers"/>
58 <CheckBoxPreference
59 android:defaultValue="@bool/headsup_notifications"
60 android:dependency="show_notification"
61 android:key="notification_headsup"
62 android:summary="@string/pref_headsup_notifications_summary"
63 android:title="@string/pref_headsup_notifications"/>
64 <CheckBoxPreference
65 android:defaultValue="@bool/vibrate_on_notification"
66 android:dependency="show_notification"
67 android:key="vibrate_on_notification"
68 android:summary="@string/pref_vibrate_summary"
69 android:title="@string/pref_vibrate"/>
70 <CheckBoxPreference
71 android:defaultValue="@bool/led"
72 android:dependency="show_notification"
73 android:key="led"
74 android:summary="@string/pref_led_summary"
75 android:title="@string/pref_led"/>
76 <RingtonePreference
77 android:defaultValue="@string/notification_ringtone"
78 android:dependency="show_notification"
79 android:key="notification_ringtone"
80 android:ringtoneType="notification"
81 android:summary="@string/pref_sound_summary"
82 android:title="@string/pref_sound"/>
83 <PreferenceScreen
84 android:dependency="show_notification"
85 android:key="quiet_hours"
86 android:summary="@string/pref_quiet_hours_summary"
87 android:title="@string/title_pref_quiet_hours">
88 <intent
89 android:action="android.intent.action.VIEW"
90 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
91 android:targetPackage="@string/applicationId">
92 <extra
93 android:name="page"
94 android:value="quiet_hours"/>
95 </intent>
96 <CheckBoxPreference
97 android:defaultValue="@bool/enable_quiet_hours"
98 android:key="enable_quiet_hours"
99 android:summary="@string/pref_quiet_hours_summary"
100 android:title="@string/title_pref_enable_quiet_hours"/>
101 <eu.siacs.conversations.ui.TimePreference
102 android:dependency="enable_quiet_hours"
103 android:key="quiet_hours_start"
104 android:negativeButtonText="@string/cancel"
105 android:positiveButtonText="@string/set"
106 android:title="@string/title_pref_quiet_hours_start_time"/>
107 <eu.siacs.conversations.ui.TimePreference
108 android:dependency="enable_quiet_hours"
109 android:key="quiet_hours_end"
110 android:negativeButtonText="@string/cancel"
111 android:positiveButtonText="@string/set"
112 android:title="@string/title_pref_quiet_hours_end_time"/>
113 </PreferenceScreen>
114 <ListPreference
115 android:defaultValue="@integer/grace_period"
116 android:dependency="show_notification"
117 android:entries="@array/grace_periods"
118 android:entryValues="@array/grace_periods_values"
119 android:key="grace_period_length"
120 android:summary="@string/pref_notification_grace_period_summary"
121 android:title="@string/pref_notification_grace_period"
122 />
123 </PreferenceCategory>
124 <PreferenceCategory
125 android:key="attachments"
126 android:title="@string/pref_attachments">
127 <ListPreference
128 android:defaultValue="@integer/auto_accept_filesize"
129 android:entries="@array/filesizes"
130 android:entryValues="@array/filesizes_values"
131 android:key="auto_accept_file_size"
132 android:summary="@string/pref_accept_files_summary"
133 android:title="@string/pref_accept_files"/>
134 <ListPreference
135 android:defaultValue="@string/picture_compression"
136 android:entries="@array/picture_compression_entries"
137 android:entryValues="@array/picture_compression_values"
138 android:key="picture_compression"
139 android:summary="@string/pref_picture_compression_summary"
140 android:title="@string/pref_picture_compression"/>
141 <CheckBoxPreference
142 android:defaultValue="@bool/return_to_previous"
143 android:key="return_to_previous"
144 android:summary="@string/pref_return_to_previous_summary"
145 android:title="@string/pref_return_to_previous"/>
146 <CheckBoxPreference
147 android:defaultValue="@bool/use_share_location_plugin"
148 android:key="use_share_location_plugin"
149 android:summary="@string/pref_use_share_location_plugin_summary"
150 android:title="@string/pref_use_share_location_plugin"/>
151 </PreferenceCategory>
152 <PreferenceCategory android:title="@string/pref_ui_options">
153 <ListPreference
154 android:defaultValue="@string/theme"
155 android:entries="@array/themes"
156 android:entryValues="@array/themes_values"
157 android:key="theme"
158 android:summary="@string/pref_theme_options_summary"
159 android:title="@string/pref_theme_options"/>
160 <CheckBoxPreference
161 android:defaultValue="@bool/use_green_background"
162 android:key="use_green_background"
163 android:summary="@string/pref_use_green_background_summary"
164 android:title="@string/pref_use_green_background"/>
165 <ListPreference
166 android:defaultValue="@string/default_font_size"
167 android:entries="@array/font_size_entries"
168 android:entryValues="@array/font_size_entry_values"
169 android:key="font_size"
170 android:summary="@string/pref_font_size_summary"
171 android:title="@string/pref_font_size"/>
172 <CheckBoxPreference
173 android:defaultValue="@bool/send_button_status"
174 android:key="send_button_status"
175 android:summary="@string/pref_use_send_button_to_indicate_status_summary"
176 android:title="@string/pref_use_send_button_to_indicate_status"/>
177 <ListPreference
178 android:defaultValue="@string/quick_action"
179 android:dialogTitle="@string/choose_quick_action"
180 android:entries="@array/quick_actions"
181 android:entryValues="@array/quick_action_values"
182 android:key="quick_action"
183 android:summary="@string/pref_quick_action_summary"
184 android:title="@string/pref_quick_action"/>
185 <CheckBoxPreference
186 android:defaultValue="@bool/show_dynamic_tags"
187 android:key="show_dynamic_tags"
188 android:summary="@string/pref_show_dynamic_tags_summary"
189 android:title="@string/pref_show_dynamic_tags"/>
190 </PreferenceCategory>
191 <PreferenceCategory
192 android:key="advanced"
193 android:title="@string/pref_advanced_options">
194 <PreferenceScreen
195 android:key="expert"
196 android:summary="@string/pref_expert_options_summary"
197 android:title="@string/pref_expert_options">
198 <intent
199 android:action="android.intent.action.VIEW"
200 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
201 android:targetPackage="@string/applicationId">
202 <extra
203 android:name="page"
204 android:value="expert"/>
205 </intent>
206 <PreferenceCategory
207 android:key="security_options"
208 android:title="@string/pref_security_settings">
209 <CheckBoxPreference
210 android:defaultValue="@bool/btbv"
211 android:key="btbv"
212 android:summary="@string/pref_blind_trust_before_verification_summary"
213 android:title="@string/pref_blind_trust_before_verification"/>
214 <ListPreference
215 android:defaultValue="@integer/automatic_message_deletion"
216 android:key="automatic_message_deletion"
217 android:summary="@string/pref_automatically_delete_messages_description"
218 android:title="@string/pref_automatically_delete_messages"/>
219 <CheckBoxPreference
220 android:defaultValue="@bool/dont_trust_system_cas"
221 android:key="dont_trust_system_cas"
222 android:summary="@string/pref_dont_trust_system_cas_summary"
223 android:title="@string/pref_dont_trust_system_cas_title"/>
224 <CheckBoxPreference
225 android:defaultValue="@bool/validate_hostname"
226 android:key="validate_hostname"
227 android:summary="@string/pref_validate_hostname_summary"
228 android:title="@string/pref_validate_hostname"/>
229 <Preference
230 android:key="remove_trusted_certificates"
231 android:summary="@string/pref_remove_trusted_certificates_summary"
232 android:title="@string/pref_remove_trusted_certificates_title"/>
233 <CheckBoxPreference
234 android:defaultValue="@bool/allow_message_correction"
235 android:key="allow_message_correction"
236 android:summary="@string/pref_allow_message_correction_summary"
237 android:title="@string/pref_allow_message_correction"/>
238 <Preference
239 android:key="clean_cache"
240 android:summary="@string/pref_clean_cache_summary"
241 android:title="@string/pref_clean_cache"/>
242 <Preference
243 android:key="clean_private_storage"
244 android:summary="@string/pref_clean_private_storage_summary"
245 android:title="@string/pref_clean_private_storage"/>
246 <Preference
247 android:key="delete_omemo_identities"
248 android:summary="@string/pref_delete_omemo_identities_summary"
249 android:title="@string/pref_delete_omemo_identities"/>
250 </PreferenceCategory>
251 <PreferenceCategory
252 android:key="connection_options"
253 android:title="@string/pref_connection_options">
254 <CheckBoxPreference
255 android:defaultValue="@bool/use_tor"
256 android:key="use_tor"
257 android:summary="@string/pref_use_tor_summary"
258 android:title="@string/pref_use_tor"/>
259 <CheckBoxPreference
260 android:defaultValue="@bool/show_connection_options"
261 android:key="show_connection_options"
262 android:summary="@string/pref_show_connection_options_summary"
263 android:title="@string/pref_show_connection_options"/>
264 </PreferenceCategory>
265 <PreferenceCategory android:title="@string/pref_input_options">
266 <CheckBoxPreference
267 android:defaultValue="@bool/start_searching"
268 android:key="start_searching"
269 android:summary="@string/pref_start_search_summary"
270 android:title="@string/pref_start_search"/>
271 <CheckBoxPreference
272 android:defaultValue="@bool/enter_is_send"
273 android:key="enter_is_send"
274 android:summary="@string/pref_enter_is_send_summary"
275 android:title="@string/pref_enter_is_send"/>
276 <CheckBoxPreference
277 android:defaultValue="@bool/display_enter_key"
278 android:key="display_enter_key"
279 android:summary="@string/pref_display_enter_key_summary"
280 android:title="@string/pref_display_enter_key"/>
281 <CheckBoxPreference
282 android:defaultValue="@bool/scroll_to_bottom"
283 android:key="scroll_to_bottom"
284 android:summary="@string/pref_scroll_to_bottom_summary"
285 android:title="@string/pref_scroll_to_bottom"/>
286 </PreferenceCategory>
287 <PreferenceCategory android:title="@string/pref_presence_settings">
288 <CheckBoxPreference
289 android:defaultValue="@bool/manually_change_presence"
290 android:disableDependentsState="true"
291 android:key="manually_change_presence"
292 android:summary="@string/pref_manually_change_presence_summary"
293 android:title="@string/pref_manually_change_presence"/>
294 <CheckBoxPreference
295 android:defaultValue="@bool/away_when_screen_off"
296 android:dependency="manually_change_presence"
297 android:key="away_when_screen_off"
298 android:summary="@string/pref_away_when_screen_off_summary"
299 android:title="@string/pref_away_when_screen_off"/>
300 <CheckBoxPreference
301 android:defaultValue="@bool/dnd_on_silent_mode"
302 android:dependency="manually_change_presence"
303 android:key="dnd_on_silent_mode"
304 android:summary="@string/pref_dnd_on_silent_mode_summary"
305 android:title="@string/pref_dnd_on_silent_mode"/>
306 <CheckBoxPreference
307 android:defaultValue="@bool/treat_vibrate_as_silent"
308 android:dependency="dnd_on_silent_mode"
309 android:key="treat_vibrate_as_silent"
310 android:summary="@string/pref_treat_vibrate_as_dnd_summary"
311 android:title="@string/pref_treat_vibrate_as_silent"/>
312 </PreferenceCategory>
313 <PreferenceCategory android:title="@string/pref_expert_options_other">
314 <CheckBoxPreference
315 android:defaultValue="@bool/autojoin"
316 android:key="autojoin"
317 android:summary="@string/pref_autojoin_summary"
318 android:title="@string/pref_autojoin"
319 />
320 <CheckBoxPreference
321 android:defaultValue="@bool/indicate_received"
322 android:key="indicate_received"
323 android:summary="@string/pref_use_indicate_received_summary"
324 android:title="@string/pref_use_indicate_received"/>
325 <CheckBoxPreference
326 android:defaultValue="@bool/enable_foreground_service"
327 android:key="enable_foreground_service"
328 android:summary="@string/pref_keep_foreground_service_summary"
329 android:title="@string/pref_keep_foreground_service"/>
330 <Preference
331 android:key="export_logs"
332 android:summary="@string/pref_export_logs_summary"
333 android:title="@string/pref_export_logs"/>
334 </PreferenceCategory>
335 </PreferenceScreen>
336
337 <CheckBoxPreference
338 android:defaultValue="@bool/never_send"
339 android:key="never_send"
340 android:summary="@string/pref_never_send_crash_summary"
341 android:title="@string/pref_never_send_crash"/>
342 </PreferenceCategory>
343 <eu.siacs.conversations.ui.AboutPreference
344 android:summary="@string/pref_about_conversations_summary"
345 android:title="@string/title_activity_about"/>
346</PreferenceScreen>