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