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:key="custom_theme_dark"
213 android:title="Custom Theme is Dark?" />
214 <com.rarepebble.colorpicker.ColorPreference
215 android:key="custom_theme_primary"
216 android:title="Custom Primary Color"
217 android:defaultValue="@color/perpy"
218 app:colorpicker_showAlpha="false" />
219 <com.rarepebble.colorpicker.ColorPreference
220 android:key="custom_theme_primary_dark"
221 android:title="Custom Primary Dark Color"
222 android:defaultValue="@color/black_perpy"
223 app:colorpicker_showAlpha="false" />
224 <com.rarepebble.colorpicker.ColorPreference
225 android:key="custom_theme_accent"
226 android:title="Custom Accent Color"
227 android:defaultValue="@color/black_perpy"
228 app:colorpicker_showAlpha="false" />
229 </PreferenceCategory>
230
231 <intent
232 android:action="android.intent.action.VIEW"
233 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
234 android:targetPackage="@string/applicationId">
235 <extra
236 android:name="page"
237 android:value="custom_theme" />
238 </intent>
239 </PreferenceScreen>
240 <ListPreference
241 android:defaultValue="@string/quick_action"
242 android:dialogTitle="@string/choose_quick_action"
243 android:entries="@array/quick_actions"
244 android:entryValues="@array/quick_action_values"
245 android:key="quick_action"
246 android:summary="@string/pref_quick_action_summary"
247 android:title="@string/pref_quick_action" />
248 <ListPreference
249 android:defaultValue="@string/default_font_size"
250 android:entries="@array/font_size_entries"
251 android:entryValues="@array/font_size_entry_values"
252 android:key="font_size"
253 android:summary="@string/pref_font_size_summary"
254 android:title="@string/pref_font_size" />
255 </PreferenceCategory>
256 <PreferenceCategory
257 android:key="backup_category"
258 android:title="@string/backup">
259 <Preference
260 android:key="create_backup"
261 android:summary="@string/pref_create_backup_summary"
262 android:title="@string/pref_create_backup" />
263 </PreferenceCategory>
264 <PreferenceCategory
265 android:key="unified_push"
266 android:title="@string/unified_push_distributor">
267 <ListPreference
268 android:defaultValue="@string/default_push_account"
269 android:key="up_push_account"
270 android:summary="@string/pref_up_push_account_summary"
271 android:title="@string/pref_up_push_account_title" />
272 <EditTextPreference
273 android:defaultValue="@string/default_push_server"
274 android:key="up_push_server"
275 android:summary="@string/pref_up_push_server_summary"
276 android:title="@string/pref_up_push_server_title" />
277
278 </PreferenceCategory>
279 <PreferenceCategory
280 android:key="advanced"
281 android:title="@string/pref_advanced_options">
282 <CheckBoxPreference
283 android:defaultValue="@bool/never_send"
284 android:key="never_send"
285 android:summary="@string/pref_never_send_crash_summary"
286 android:title="@string/pref_never_send_crash" />
287
288 <CheckBoxPreference
289 android:defaultValue="@bool/enable_foreground_service"
290 android:key="enable_foreground_service"
291 android:summary="@string/pref_keep_foreground_service_summary"
292 android:title="@string/pref_keep_foreground_service" />
293
294 <PreferenceScreen
295 android:key="expert"
296 android:summary="@string/pref_expert_options_summary"
297 android:title="@string/pref_expert_options">
298 <PreferenceCategory
299 android:key="security_options"
300 android:title="@string/pref_security_settings">
301 <CheckBoxPreference
302 android:defaultValue="@bool/btbv"
303 android:key="btbv"
304 android:summary="@string/pref_blind_trust_before_verification_summary"
305 android:title="@string/pref_blind_trust_before_verification" />
306 <CheckBoxPreference
307 android:defaultValue="@bool/dont_trust_system_cas"
308 android:key="dont_trust_system_cas"
309 android:summary="@string/pref_dont_trust_system_cas_summary"
310 android:title="@string/pref_dont_trust_system_cas_title" />
311 <CheckBoxPreference
312 android:defaultValue="@bool/allow_message_correction"
313 android:key="allow_message_correction"
314 android:summary="@string/pref_allow_message_correction_summary"
315 android:title="@string/pref_allow_message_correction" />
316 <ListPreference
317 android:defaultValue="@integer/automatic_message_deletion"
318 android:key="automatic_message_deletion"
319 android:summary="@string/pref_automatically_delete_messages_description"
320 android:title="@string/pref_automatically_delete_messages" />
321 <Preference
322 android:key="remove_trusted_certificates"
323 android:summary="@string/pref_remove_trusted_certificates_summary"
324 android:title="@string/pref_remove_trusted_certificates_title" />
325 <Preference
326 android:key="clean_cache"
327 android:summary="@string/pref_clean_cache_summary"
328 android:title="@string/pref_clean_cache" />
329 <Preference
330 android:key="clean_private_storage"
331 android:summary="@string/pref_clean_private_storage_summary"
332 android:title="@string/pref_clean_private_storage" />
333 <Preference
334 android:key="delete_omemo_identities"
335 android:summary="@string/pref_delete_omemo_identities_summary"
336 android:title="@string/pref_delete_omemo_identities" />
337 </PreferenceCategory>
338 <PreferenceCategory
339 android:key="connection_options"
340 android:title="@string/pref_connection_options">
341 <CheckBoxPreference
342 android:defaultValue="@bool/use_tor"
343 android:key="use_tor"
344 android:summary="@string/pref_use_tor_summary"
345 android:title="@string/pref_use_tor" />
346 <CheckBoxPreference
347 android:defaultValue="@bool/show_connection_options"
348 android:key="show_connection_options"
349 android:summary="@string/pref_show_connection_options_summary"
350 android:title="@string/pref_show_connection_options" />
351 </PreferenceCategory>
352 <PreferenceCategory android:title="@string/pref_input_options">
353 <CheckBoxPreference
354 android:defaultValue="@bool/follow_thread_in_channel"
355 android:key="follow_thread_in_channel"
356 android:summary="@string/pref_follow_thread_in_channel_summary"
357 android:title="@string/pref_follow_thread_in_channel" />
358 <CheckBoxPreference
359 android:defaultValue="@bool/start_searching"
360 android:key="start_searching"
361 android:summary="@string/pref_start_search_summary"
362 android:title="@string/pref_start_search" />
363 <CheckBoxPreference
364 android:defaultValue="@bool/enter_is_send"
365 android:key="enter_is_send"
366 android:summary="@string/pref_enter_is_send_summary"
367 android:title="@string/pref_enter_is_send" />
368 <CheckBoxPreference
369 android:defaultValue="@bool/display_enter_key"
370 android:key="display_enter_key"
371 android:summary="@string/pref_display_enter_key_summary"
372 android:title="@string/pref_display_enter_key" />
373 <CheckBoxPreference
374 android:defaultValue="@bool/scroll_to_bottom"
375 android:key="scroll_to_bottom"
376 android:summary="@string/pref_scroll_to_bottom_summary"
377 android:title="@string/pref_scroll_to_bottom" />
378 <CheckBoxPreference
379 android:defaultValue="@bool/message_autocomplete"
380 android:key="message_autocomplete"
381 android:summary="@string/pref_message_autocomplete_summary"
382 android:title="@string/pref_message_autocomplete" />
383 </PreferenceCategory>
384 <PreferenceCategory android:key="expert_media" android:title="Media">
385 <Preference
386 android:title="Change Stickers Location"
387 android:key="sticker_directory" />
388 <Preference
389 android:title="Update Default Stickers"
390 android:key="download_default_stickers" />
391 <Preference
392 android:title="Clear Blocked Media"
393 android:key="clear_blocked_media" />
394 <ListPreference
395 android:title="Voice Message Codec"
396 android:defaultValue="opus"
397 android:entries="@array/voice_codec_entries"
398 android:entryValues="@array/voice_codec_values"
399 android:key="voice_message_codec" />
400 </PreferenceCategory>
401 <PreferenceCategory android:title="@string/pref_presence_settings">
402 <CheckBoxPreference
403 android:defaultValue="@bool/manually_change_presence"
404 android:disableDependentsState="true"
405 android:key="manually_change_presence"
406 android:summary="@string/pref_manually_change_presence_summary"
407 android:title="@string/pref_manually_change_presence" />
408 <CheckBoxPreference
409 android:defaultValue="@bool/away_when_screen_off"
410 android:dependency="manually_change_presence"
411 android:key="away_when_screen_off"
412 android:summary="@string/pref_away_when_screen_off_summary"
413 android:title="@string/pref_away_when_screen_off" />
414 <CheckBoxPreference
415 android:defaultValue="@bool/dnd_on_silent_mode"
416 android:dependency="manually_change_presence"
417 android:key="dnd_on_silent_mode"
418 android:summary="@string/pref_dnd_on_silent_mode_summary"
419 android:title="@string/pref_dnd_on_silent_mode" />
420 <CheckBoxPreference
421 android:defaultValue="@bool/treat_vibrate_as_silent"
422 android:dependency="dnd_on_silent_mode"
423 android:key="treat_vibrate_as_silent"
424 android:summary="@string/pref_treat_vibrate_as_dnd_summary"
425 android:title="@string/pref_treat_vibrate_as_silent" />
426 </PreferenceCategory>
427 <PreferenceCategory
428 android:key="group_chats"
429 android:title="@string/group_chats_and_channels">
430 <CheckBoxPreference
431 android:defaultValue="@bool/autojoin"
432 android:key="autojoin"
433 android:summary="@string/pref_autojoin_summary"
434 android:title="@string/pref_autojoin" />
435 <ListPreference
436 android:defaultValue="@string/default_channel_discovery"
437 android:entries="@array/channel_discovery_entries"
438 android:entryValues="@array/channel_discover_values"
439 android:key="channel_discovery_method"
440 android:summary="@string/pref_channel_discovery_summary"
441 android:title="@string/pref_channel_discovery" />
442 </PreferenceCategory>
443 <intent
444 android:action="android.intent.action.VIEW"
445 android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
446 android:targetPackage="@string/applicationId">
447 <extra
448 android:name="page"
449 android:value="expert" />
450 </intent>
451 </PreferenceScreen>
452 </PreferenceCategory>
453 <PreferenceCategory android:title="@string/category_about">
454 <Preference android:title="View Privacy Policy" android:summary="Details about how your data is used by the app">
455 <intent
456 android:action="android.intent.action.VIEW"
457 android:data="https://cheogram.com/android-privacy.html" />
458 </Preference>
459 <eu.siacs.conversations.ui.AboutPreference />
460 </PreferenceCategory>
461</PreferenceScreen>