preferences.xml

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