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