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