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 android:key="main_screen"
5 xmlns:app="http://schemas.android.com/apk/res-auto">
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 <intent
15 android:targetClass="com.huawei.systemmanager.optimize.process.ProtectActivity"
16 android:targetPackage="com.huawei.systemmanager" />
17 </PreferenceScreen>
18 </PreferenceCategory>
19 <PreferenceCategory android:title="@string/pref_privacy"
20 android:key="privacy">
21 <CheckBoxPreference
22 android:defaultValue="@bool/confirm_messages"
23 android:key="confirm_messages"
24 android:summary="@string/pref_confirm_messages_summary"
25 android:title="@string/pref_confirm_messages" />
26 <CheckBoxPreference
27 android:defaultValue="@bool/chat_states"
28 android:key="chat_states"
29 android:summary="@string/pref_chat_states_summary"
30 android:title="@string/pref_chat_states" />
31
32 <CheckBoxPreference
33 android:defaultValue="@bool/last_activity"
34 android:key="last_activity"
35 android:summary="@string/pref_broadcast_last_activity_summary"
36 android:title="@string/pref_broadcast_last_activity" />
37
38 <CheckBoxPreference
39 android:defaultValue="@bool/send_link_previews"
40 android:key="send_link_previews"
41 android:summary="@string/pref_send_link_previews_summary"
42 android:title="@string/pref_send_link_previews" />
43
44 <CheckBoxPreference
45 android:defaultValue="@bool/prevent_screenshots"
46 android:key="prevent_screenshots"
47 android:summary="@string/pref_prevent_screenshots_summary"
48 android:title="@string/pref_prevent_screenshots" />
49
50 <ListPreference
51 android:defaultValue="@string/omemo_setting_default"
52 android:entries="@array/omemo_setting_entries"
53 android:entryValues="@array/omemo_setting_entry_values"
54 android:key="omemo"
55 android:summary="@string/pref_omemo_setting_summary_default_on"
56 android:title="@string/pref_omemo_setting" />
57 </PreferenceCategory>
58 <PreferenceCategory
59 android:key="notification_category"
60 android:title="@string/pref_notification_settings">
61 <CheckBoxPreference
62 android:defaultValue="@bool/notifications_from_strangers"
63 android:key="notifications_from_strangers"
64 android:summary="@string/pref_notifications_from_strangers_summary"
65 android:title="@string/pref_notifications_from_strangers" />
66 <CheckBoxPreference
67 android:defaultValue="@bool/headsup_notifications"
68 android:key="notification_headsup"
69 android:summary="@string/pref_headsup_notifications_summary"
70 android:title="@string/pref_headsup_notifications" />
71 <CheckBoxPreference
72 android:defaultValue="@bool/vibrate_on_notification"
73 android:key="vibrate_on_notification"
74 android:summary="@string/pref_vibrate_summary"
75 android:title="@string/pref_vibrate" />
76 <CheckBoxPreference
77 android:defaultValue="@bool/led"
78 android:key="led"
79 android:summary="@string/pref_led_summary"
80 android:title="@string/pref_led" />
81 <ListPreference
82 android:defaultValue="@integer/grace_period"
83 android:entries="@array/grace_periods"
84 android:entryValues="@array/grace_periods_values"
85 android:key="grace_period_length"
86 android:summary="@string/pref_notification_grace_period_summary"
87 android:title="@string/pref_notification_grace_period" />
88 <PreferenceScreen
89 android:key="quiet_hours"
90 android:summary="@string/pref_quiet_hours_summary"
91 android:title="@string/title_pref_quiet_hours">
92 <CheckBoxPreference
93 android:defaultValue="@bool/enable_quiet_hours"
94 android:key="enable_quiet_hours"
95 android:summary="@string/pref_quiet_hours_summary"
96 android:title="@string/title_pref_enable_quiet_hours" />
97 <eu.siacs.conversations.ui.TimePreference
98 android:dependency="enable_quiet_hours"
99 android:key="quiet_hours_start"
100 android:negativeButtonText="@string/cancel"
101 android:positiveButtonText="@string/set"
102 android:title="@string/title_pref_quiet_hours_start_time" />
103 <eu.siacs.conversations.ui.TimePreference
104 android:dependency="enable_quiet_hours"
105 android:key="quiet_hours_end"
106 android:negativeButtonText="@string/cancel"
107 android:positiveButtonText="@string/set"
108 android:title="@string/title_pref_quiet_hours_end_time" />
109 <intent
110 android:action="android.intent.action.VIEW"
111 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
112 android:targetPackage="@string/applicationId">
113 <extra
114 android:name="page"
115 android:value="quiet_hours" />
116 </intent>
117 </PreferenceScreen>
118 <PreferenceScreen
119 android:key="message_notification_settings"
120 android:summary="@string/pref_more_notification_settings_summary"
121 android:title="@string/pref_message_notification_settings">
122 <intent android:action="android.settings.CHANNEL_NOTIFICATION_SETTINGS">
123 <extra
124 android:name="android.provider.extra.APP_PACKAGE"
125 android:value="@string/applicationId" />
126 <extra
127 android:name="android.provider.extra.CHANNEL_ID"
128 android:value="messages" />
129 </intent>
130 </PreferenceScreen>
131 <RingtonePreference
132 android:defaultValue="@string/notification_ringtone"
133 android:key="notification_ringtone"
134 android:ringtoneType="notification"
135 android:summary="@string/pref_notification_sound_summary"
136 android:title="@string/pref_notification_sound" />
137 <RingtonePreference
138 android:defaultValue="@string/incoming_call_ringtone"
139 android:key="call_ringtone"
140 android:ringtoneType="ringtone"
141 android:summary="@string/pref_call_ringtone_summary"
142 android:title="@string/pref_ringtone" />
143 <CheckBoxPreference
144 android:defaultValue="@bool/dialler_integration_incoming"
145 android:key="dialler_integration_incoming"
146 android:summary="@string/pref_dialler_integration_incoming_summary"
147 android:title="@string/pref_dialler_integration_incoming" />
148 </PreferenceCategory>
149 <PreferenceCategory
150 android:key="attachments"
151 android:title="@string/pref_attachments">
152 <CheckBoxPreference
153 android:defaultValue="@bool/use_share_location_plugin"
154 android:key="use_share_location_plugin"
155 android:summary="@string/pref_use_share_location_plugin_summary"
156 android:title="@string/pref_use_share_location_plugin" />
157 <ListPreference
158 android:defaultValue="@string/picture_compression"
159 android:entries="@array/picture_compression_entries"
160 android:entryValues="@array/picture_compression_values"
161 android:key="picture_compression"
162 android:summary="@string/pref_picture_compression_summary"
163 android:title="@string/pref_picture_compression" />
164 <ListPreference
165 android:defaultValue="@string/video_compression"
166 android:entries="@array/video_compression_entries"
167 android:entryValues="@array/video_compression_values"
168 android:key="video_compression"
169 android:summary="@string/pref_video_compression_summary"
170 android:title="@string/pref_video_compression" />
171 <ListPreference
172 android:defaultValue="@integer/auto_accept_filesize"
173 android:entries="@array/filesizes"
174 android:entryValues="@array/filesizes_values"
175 android:key="auto_accept_file_size"
176 android:summary="@string/pref_accept_files_summary"
177 android:title="@string/pref_accept_files" />
178 </PreferenceCategory>
179 <PreferenceCategory android:key="ui" android:title="@string/pref_ui_options">
180 <CheckBoxPreference
181 android:defaultValue="@bool/use_green_background"
182 android:key="use_green_background"
183 android:summary="@string/pref_use_green_background_summary"
184 android:title="@string/pref_use_green_background" />
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 <ListPreference
191 android:defaultValue="@string/theme"
192 android:entries="@array/themes"
193 android:entryValues="@array/themes_values"
194 android:key="theme"
195 android:summary="@string/pref_theme_options_summary"
196 android:title="@string/pref_theme_options" />
197 <PreferenceScreen
198 android:key="custom_theme"
199 android:title="Custom Theme Options">
200 <Preference
201 android:key="pref_static_field_key"
202 android:selectable="false"
203 android:persistent="false"
204 android:summary="You may sometimes have to force quit the app to get changes applied."/>
205
206 <PreferenceCategory
207 android:key="custom_theme_colors"
208 android:title="Colors">
209
210 <CheckBoxPreference
211 android:defaultValue="false"
212 android:disableDependentsState="true"
213 android:key="custom_theme_automatic"
214 android:title="Follow System Dark Mode?" />
215 <CheckBoxPreference
216 android:defaultValue="false"
217 android:dependency="custom_theme_automatic"
218 android:key="custom_theme_dark"
219 android:title="Custom Theme is Dark?" />
220 <com.rarepebble.colorpicker.ColorPreference
221 android:key="custom_theme_background_primary"
222 android:title="Custom Background Color"
223 android:defaultValue="@color/grey50"
224 app:colorpicker_showAlpha="false" />
225 <com.rarepebble.colorpicker.ColorPreference
226 android:key="custom_theme_background_primary_dark"
227 android:title="Custom Dark Background Color"
228 android:defaultValue="@color/grey800"
229 app:colorpicker_showAlpha="false" />
230 <com.rarepebble.colorpicker.ColorPreference
231 android:key="custom_theme_primary"
232 android:title="Custom Primary Color"
233 android:defaultValue="@color/perpy"
234 app:colorpicker_showAlpha="false" />
235 <com.rarepebble.colorpicker.ColorPreference
236 android:key="custom_theme_primary_dark"
237 android:title="Custom Primary Dark Color"
238 android:defaultValue="@color/black_perpy"
239 app:colorpicker_showAlpha="false" />
240 <com.rarepebble.colorpicker.ColorPreference
241 android:key="custom_theme_accent"
242 android:title="Custom Accent Color"
243 android:defaultValue="@color/black_perpy"
244 app:colorpicker_showAlpha="false" />
245 </PreferenceCategory>
246
247 <intent
248 android:action="android.intent.action.VIEW"
249 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
250 android:targetPackage="@string/applicationId">
251 <extra
252 android:name="page"
253 android:value="custom_theme" />
254 </intent>
255 </PreferenceScreen>
256 <ListPreference
257 android:defaultValue="@string/quick_action"
258 android:dialogTitle="@string/choose_quick_action"
259 android:entries="@array/quick_actions"
260 android:entryValues="@array/quick_action_values"
261 android:key="quick_action"
262 android:summary="@string/pref_quick_action_summary"
263 android:title="@string/pref_quick_action" />
264 <ListPreference
265 android:defaultValue="@string/default_font_size"
266 android:entries="@array/font_size_entries"
267 android:entryValues="@array/font_size_entry_values"
268 android:key="font_size"
269 android:summary="@string/pref_font_size_summary"
270 android:title="@string/pref_font_size" />
271 </PreferenceCategory>
272 <PreferenceCategory
273 android:key="backup_category"
274 android:title="@string/backup">
275 <Preference
276 android:key="create_backup"
277 android:summary="@string/pref_create_backup_summary"
278 android:title="@string/pref_create_backup" />
279 </PreferenceCategory>
280 <PreferenceCategory
281 android:key="unified_push"
282 android:title="@string/unified_push_distributor">
283 <ListPreference
284 android:defaultValue="@string/default_push_account"
285 android:key="up_push_account"
286 android:summary="@string/pref_up_push_account_summary"
287 android:title="@string/pref_up_push_account_title" />
288 <EditTextPreference
289 android:defaultValue="@string/default_push_server"
290 android:key="up_push_server"
291 android:summary="@string/pref_up_push_server_summary"
292 android:title="@string/pref_up_push_server_title" />
293
294 </PreferenceCategory>
295 <PreferenceCategory
296 android:key="advanced"
297 android:title="@string/pref_advanced_options">
298 <CheckBoxPreference
299 android:defaultValue="@bool/never_send"
300 android:key="never_send"
301 android:summary="@string/pref_never_send_crash_summary"
302 android:title="@string/pref_never_send_crash" />
303
304 <CheckBoxPreference
305 android:defaultValue="@bool/enable_foreground_service"
306 android:key="enable_foreground_service"
307 android:summary="@string/pref_keep_foreground_service_summary"
308 android:title="@string/pref_keep_foreground_service" />
309
310 <PreferenceScreen
311 android:key="expert"
312 android:summary="@string/pref_expert_options_summary"
313 android:title="@string/pref_expert_options">
314 <PreferenceCategory
315 android:key="security_options"
316 android:title="@string/pref_security_settings">
317 <CheckBoxPreference
318 android:defaultValue="@bool/btbv"
319 android:key="btbv"
320 android:summary="@string/pref_blind_trust_before_verification_summary"
321 android:title="@string/pref_blind_trust_before_verification" />
322 <CheckBoxPreference
323 android:defaultValue="@bool/dont_trust_system_cas"
324 android:key="dont_trust_system_cas"
325 android:summary="@string/pref_dont_trust_system_cas_summary"
326 android:title="@string/pref_dont_trust_system_cas_title" />
327 <CheckBoxPreference
328 android:defaultValue="@bool/allow_message_correction"
329 android:key="allow_message_correction"
330 android:summary="@string/pref_allow_message_correction_summary"
331 android:title="@string/pref_allow_message_correction" />
332 <ListPreference
333 android:defaultValue="@integer/automatic_message_deletion"
334 android:key="automatic_message_deletion"
335 android:summary="@string/pref_automatically_delete_messages_description"
336 android:title="@string/pref_automatically_delete_messages" />
337 <Preference
338 android:key="remove_trusted_certificates"
339 android:summary="@string/pref_remove_trusted_certificates_summary"
340 android:title="@string/pref_remove_trusted_certificates_title" />
341 <Preference
342 android:key="clean_cache"
343 android:summary="@string/pref_clean_cache_summary"
344 android:title="@string/pref_clean_cache" />
345 <Preference
346 android:key="clean_private_storage"
347 android:summary="@string/pref_clean_private_storage_summary"
348 android:title="@string/pref_clean_private_storage" />
349 <Preference
350 android:key="delete_omemo_identities"
351 android:summary="@string/pref_delete_omemo_identities_summary"
352 android:title="@string/pref_delete_omemo_identities" />
353 </PreferenceCategory>
354 <PreferenceCategory
355 android:key="connection_options"
356 android:title="@string/pref_connection_options">
357 <CheckBoxPreference
358 android:defaultValue="@bool/use_tor"
359 android:key="use_tor"
360 android:summary="@string/pref_use_tor_summary"
361 android:title="@string/pref_use_tor" />
362 <CheckBoxPreference
363 android:defaultValue="@bool/show_connection_options"
364 android:key="show_connection_options"
365 android:summary="@string/pref_show_connection_options_summary"
366 android:title="@string/pref_show_connection_options" />
367 </PreferenceCategory>
368 <PreferenceCategory android:title="@string/pref_input_options">
369 <CheckBoxPreference
370 android:defaultValue="@bool/follow_thread_in_channel"
371 android:key="follow_thread_in_channel"
372 android:summary="@string/pref_follow_thread_in_channel_summary"
373 android:title="@string/pref_follow_thread_in_channel" />
374 <CheckBoxPreference
375 android:defaultValue="@bool/start_searching"
376 android:key="start_searching"
377 android:summary="@string/pref_start_search_summary"
378 android:title="@string/pref_start_search" />
379 <CheckBoxPreference
380 android:defaultValue="@bool/enter_is_send"
381 android:key="enter_is_send"
382 android:summary="@string/pref_enter_is_send_summary"
383 android:title="@string/pref_enter_is_send" />
384 <CheckBoxPreference
385 android:defaultValue="@bool/display_enter_key"
386 android:key="display_enter_key"
387 android:summary="@string/pref_display_enter_key_summary"
388 android:title="@string/pref_display_enter_key" />
389 <CheckBoxPreference
390 android:defaultValue="@bool/scroll_to_bottom"
391 android:key="scroll_to_bottom"
392 android:summary="@string/pref_scroll_to_bottom_summary"
393 android:title="@string/pref_scroll_to_bottom" />
394 <CheckBoxPreference
395 android:defaultValue="@bool/message_autocomplete"
396 android:key="message_autocomplete"
397 android:summary="@string/pref_message_autocomplete_summary"
398 android:title="@string/pref_message_autocomplete" />
399 </PreferenceCategory>
400 <PreferenceCategory android:key="expert_media" android:title="Media">
401 <Preference
402 android:title="Change Stickers Location"
403 android:key="sticker_directory" />
404 <Preference
405 android:title="Update Default Stickers"
406 android:key="download_default_stickers" />
407 <Preference
408 android:title="Clear Blocked Media"
409 android:key="clear_blocked_media" />
410 <ListPreference
411 android:title="Voice Message Codec"
412 android:defaultValue="opus"
413 android:entries="@array/voice_codec_entries"
414 android:entryValues="@array/voice_codec_values"
415 android:key="voice_message_codec" />
416 </PreferenceCategory>
417 <PreferenceCategory android:title="@string/pref_presence_settings">
418 <CheckBoxPreference
419 android:defaultValue="@bool/manually_change_presence"
420 android:disableDependentsState="true"
421 android:key="manually_change_presence"
422 android:summary="@string/pref_manually_change_presence_summary"
423 android:title="@string/pref_manually_change_presence" />
424 <CheckBoxPreference
425 android:defaultValue="@bool/away_when_screen_off"
426 android:dependency="manually_change_presence"
427 android:key="away_when_screen_off"
428 android:summary="@string/pref_away_when_screen_off_summary"
429 android:title="@string/pref_away_when_screen_off" />
430 <CheckBoxPreference
431 android:defaultValue="@bool/dnd_on_silent_mode"
432 android:dependency="manually_change_presence"
433 android:key="dnd_on_silent_mode"
434 android:summary="@string/pref_dnd_on_silent_mode_summary"
435 android:title="@string/pref_dnd_on_silent_mode" />
436 <CheckBoxPreference
437 android:defaultValue="@bool/treat_vibrate_as_silent"
438 android:dependency="dnd_on_silent_mode"
439 android:key="treat_vibrate_as_silent"
440 android:summary="@string/pref_treat_vibrate_as_dnd_summary"
441 android:title="@string/pref_treat_vibrate_as_silent" />
442 </PreferenceCategory>
443 <PreferenceCategory
444 android:key="group_chats"
445 android:title="@string/group_chats_and_channels">
446 <CheckBoxPreference
447 android:defaultValue="@bool/autojoin"
448 android:key="autojoin"
449 android:summary="@string/pref_autojoin_summary"
450 android:title="@string/pref_autojoin" />
451 <ListPreference
452 android:defaultValue="@string/default_channel_discovery"
453 android:entries="@array/channel_discovery_entries"
454 android:entryValues="@array/channel_discover_values"
455 android:key="channel_discovery_method"
456 android:summary="@string/pref_channel_discovery_summary"
457 android:title="@string/pref_channel_discovery" />
458 </PreferenceCategory>
459 <intent
460 android:action="android.intent.action.VIEW"
461 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
462 android:targetPackage="@string/applicationId">
463 <extra
464 android:name="page"
465 android:value="expert" />
466 </intent>
467 </PreferenceScreen>
468 </PreferenceCategory>
469 <PreferenceCategory android:title="@string/category_about">
470 <Preference android:title="View Privacy Policy" android:summary="Details about how your data is used by the app">
471 <intent
472 android:action="android.intent.action.VIEW"
473 android:data="https://cheogram.com/android-privacy.html" />
474 </Preference>
475 <eu.siacs.conversations.ui.AboutPreference />
476 </PreferenceCategory>
477</PreferenceScreen>