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
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            </PreferenceCategory>
395            <PreferenceCategory android:title="@string/pref_presence_settings">
396                <CheckBoxPreference
397                    android:defaultValue="@bool/manually_change_presence"
398                    android:disableDependentsState="true"
399                    android:key="manually_change_presence"
400                    android:summary="@string/pref_manually_change_presence_summary"
401                    android:title="@string/pref_manually_change_presence" />
402                <CheckBoxPreference
403                    android:defaultValue="@bool/away_when_screen_off"
404                    android:dependency="manually_change_presence"
405                    android:key="away_when_screen_off"
406                    android:summary="@string/pref_away_when_screen_off_summary"
407                    android:title="@string/pref_away_when_screen_off" />
408                <CheckBoxPreference
409                    android:defaultValue="@bool/dnd_on_silent_mode"
410                    android:dependency="manually_change_presence"
411                    android:key="dnd_on_silent_mode"
412                    android:summary="@string/pref_dnd_on_silent_mode_summary"
413                    android:title="@string/pref_dnd_on_silent_mode" />
414                <CheckBoxPreference
415                    android:defaultValue="@bool/treat_vibrate_as_silent"
416                    android:dependency="dnd_on_silent_mode"
417                    android:key="treat_vibrate_as_silent"
418                    android:summary="@string/pref_treat_vibrate_as_dnd_summary"
419                    android:title="@string/pref_treat_vibrate_as_silent" />
420            </PreferenceCategory>
421            <PreferenceCategory
422                android:key="group_chats"
423                android:title="@string/group_chats_and_channels">
424                <CheckBoxPreference
425                    android:defaultValue="@bool/autojoin"
426                    android:key="autojoin"
427                    android:summary="@string/pref_autojoin_summary"
428                    android:title="@string/pref_autojoin" />
429                <ListPreference
430                    android:defaultValue="@string/default_channel_discovery"
431                    android:entries="@array/channel_discovery_entries"
432                    android:entryValues="@array/channel_discover_values"
433                    android:key="channel_discovery_method"
434                    android:summary="@string/pref_channel_discovery_summary"
435                    android:title="@string/pref_channel_discovery" />
436            </PreferenceCategory>
437            <intent
438                android:action="android.intent.action.VIEW"
439                android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
440                android:targetPackage="@string/applicationId">
441                <extra
442                    android:name="page"
443                    android:value="expert" />
444            </intent>
445        </PreferenceScreen>
446    </PreferenceCategory>
447    <PreferenceCategory android:title="@string/category_about">
448        <Preference android:title="View Privacy Policy" android:summary="Details about how your data is used by the app">
449            <intent
450                android:action="android.intent.action.VIEW"
451                android:data="https://cheogram.com/android-privacy.html" />
452        </Preference>
453        <eu.siacs.conversations.ui.AboutPreference />
454    </PreferenceCategory>
455</PreferenceScreen>