preferences.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
  3    android:key="main_screen">
  4
  5    <PreferenceCategory
  6        android:key="general"
  7        android:title="@string/pref_general">
  8        <PreferenceScreen
  9            android:key="huawei"
 10            android:summary="@string/huawei_protected_apps_summary"
 11            android:title="@string/huawei_protected_apps">
 12            <intent
 13                android:targetClass="com.huawei.systemmanager.optimize.process.ProtectActivity"
 14                android:targetPackage="com.huawei.systemmanager" />
 15        </PreferenceScreen>
 16    </PreferenceCategory>
 17    <PreferenceCategory
 18        android:key="privacy"
 19        android:title="@string/pref_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    </PreferenceCategory>
137    <PreferenceCategory
138        android:key="attachments"
139        android:title="@string/pref_attachments">
140        <CheckBoxPreference
141            android:defaultValue="@bool/use_share_location_plugin"
142            android:key="use_share_location_plugin"
143            android:summary="@string/pref_use_share_location_plugin_summary"
144            android:title="@string/pref_use_share_location_plugin" />
145        <ListPreference
146            android:defaultValue="@string/picture_compression"
147            android:entries="@array/picture_compression_entries"
148            android:entryValues="@array/picture_compression_values"
149            android:key="picture_compression"
150            android:summary="@string/pref_picture_compression_summary"
151            android:title="@string/pref_picture_compression" />
152        <ListPreference
153            android:defaultValue="@string/video_compression"
154            android:entries="@array/video_compression_entries"
155            android:entryValues="@array/video_compression_values"
156            android:key="video_compression"
157            android:summary="@string/pref_video_compression_summary"
158            android:title="@string/pref_video_compression" />
159        <ListPreference
160            android:defaultValue="@integer/auto_accept_filesize"
161            android:entries="@array/filesizes"
162            android:entryValues="@array/filesizes_values"
163            android:key="auto_accept_file_size"
164            android:summary="@string/pref_accept_files_summary"
165            android:title="@string/pref_accept_files" />
166    </PreferenceCategory>
167    <PreferenceCategory android:key="ui" android:title="@string/pref_ui_options">
168        <ListPreference
169            android:defaultValue="@string/theme"
170            android:entries="@array/themes"
171            android:entryValues="@array/themes_values"
172            android:key="theme"
173            android:summary="@string/pref_theme_options_summary"
174            android:title="@string/pref_theme_options" />
175        <CheckBoxPreference
176            android:key="dynamic_colors"
177            android:summary="@string/pref_dynamic_colors_summary"
178            android:title="@string/pref_dynamic_colors" />
179        <CheckBoxPreference
180            android:defaultValue="@bool/use_green_background"
181            android:key="use_green_background"
182            android:summary="@string/pref_use_colorful_bubbles_summary"
183            android:title="@string/pref_use_colorful_bubbles" />
184        <CheckBoxPreference
185            android:defaultValue="@bool/show_dynamic_tags"
186            android:key="show_dynamic_tags"
187            android:summary="@string/pref_show_dynamic_tags_summary"
188            android:title="@string/pref_show_dynamic_tags" />
189        <ListPreference
190            android:defaultValue="@string/quick_action"
191            android:dialogTitle="@string/choose_quick_action"
192            android:entries="@array/quick_actions"
193            android:entryValues="@array/quick_action_values"
194            android:key="quick_action"
195            android:summary="@string/pref_quick_action_summary"
196            android:title="@string/pref_quick_action" />
197    </PreferenceCategory>
198    <PreferenceCategory
199        android:key="backup_category"
200        android:title="@string/backup">
201        <Preference
202            android:key="create_backup"
203            android:summary="@string/pref_create_backup_summary"
204            android:title="@string/pref_create_backup" />
205    </PreferenceCategory>
206    <PreferenceCategory
207        android:key="unified_push"
208        android:title="@string/unified_push_distributor">
209        <ListPreference
210            android:defaultValue="@string/default_push_account"
211            android:key="up_push_account"
212            android:summary="@string/pref_up_push_account_summary"
213            android:title="@string/pref_up_push_account_title" />
214        <EditTextPreference
215            android:defaultValue="@string/default_push_server"
216            android:key="up_push_server"
217            android:summary="@string/pref_up_push_server_summary"
218            android:title="@string/pref_up_push_server_title" />
219
220    </PreferenceCategory>
221    <PreferenceCategory
222        android:key="advanced"
223        android:title="@string/pref_advanced_options">
224        <CheckBoxPreference
225            android:defaultValue="@bool/never_send"
226            android:key="never_send"
227            android:summary="@string/pref_never_send_crash_summary"
228            android:title="@string/pref_never_send_crash" />
229
230        <CheckBoxPreference
231            android:defaultValue="@bool/enable_foreground_service"
232            android:key="enable_foreground_service"
233            android:summary="@string/pref_keep_foreground_service_summary"
234            android:title="@string/pref_keep_foreground_service" />
235
236        <PreferenceScreen
237            android:key="expert"
238            android:summary="@string/pref_expert_options_summary"
239            android:title="@string/pref_expert_options">
240            <PreferenceCategory
241                android:key="security_options"
242                android:title="@string/pref_security_settings">
243                <CheckBoxPreference
244                    android:defaultValue="@bool/btbv"
245                    android:key="btbv"
246                    android:summary="@string/pref_blind_trust_before_verification_summary"
247                    android:title="@string/pref_blind_trust_before_verification" />
248                <CheckBoxPreference
249                    android:defaultValue="@bool/dont_trust_system_cas"
250                    android:key="dont_trust_system_cas"
251                    android:summary="@string/pref_dont_trust_system_cas_summary"
252                    android:title="@string/pref_dont_trust_system_cas_title" />
253                <CheckBoxPreference
254                    android:defaultValue="@bool/validate_hostname"
255                    android:key="validate_hostname"
256                    android:summary="@string/pref_validate_hostname_summary"
257                    android:title="@string/pref_validate_hostname" />
258                <CheckBoxPreference
259                    android:defaultValue="@bool/allow_message_correction"
260                    android:key="allow_message_correction"
261                    android:summary="@string/pref_allow_message_correction_summary"
262                    android:title="@string/pref_allow_message_correction" />
263                <ListPreference
264                    android:defaultValue="@integer/automatic_message_deletion"
265                    android:key="automatic_message_deletion"
266                    android:summary="@string/pref_automatically_delete_messages_description"
267                    android:title="@string/pref_automatically_delete_messages" />
268                <Preference
269                    android:key="remove_trusted_certificates"
270                    android:summary="@string/pref_remove_trusted_certificates_summary"
271                    android:title="@string/pref_remove_trusted_certificates_title" />
272                <Preference
273                    android:key="clean_cache"
274                    android:summary="@string/pref_clean_cache_summary"
275                    android:title="@string/pref_clean_cache" />
276                <Preference
277                    android:key="clean_private_storage"
278                    android:summary="@string/pref_clean_private_storage_summary"
279                    android:title="@string/pref_clean_private_storage" />
280                <Preference
281                    android:key="delete_omemo_identities"
282                    android:summary="@string/pref_delete_omemo_identities_summary"
283                    android:title="@string/pref_delete_omemo_identities" />
284            </PreferenceCategory>
285            <PreferenceCategory
286                android:key="connection_options"
287                android:title="@string/pref_connection_options">
288                <CheckBoxPreference
289                    android:defaultValue="@bool/use_tor"
290                    android:key="use_tor"
291                    android:summary="@string/pref_use_tor_summary"
292                    android:title="@string/pref_use_tor" />
293                <CheckBoxPreference
294                    android:defaultValue="@bool/show_connection_options"
295                    android:key="show_connection_options"
296                    android:summary="@string/pref_show_connection_options_summary"
297                    android:title="@string/pref_show_connection_options" />
298            </PreferenceCategory>
299            <PreferenceCategory android:title="@string/pref_input_options">
300                <CheckBoxPreference
301                    android:defaultValue="@bool/start_searching"
302                    android:key="start_searching"
303                    android:summary="@string/pref_start_search_summary"
304                    android:title="@string/pref_start_search" />
305                <CheckBoxPreference
306                    android:defaultValue="@bool/enter_is_send"
307                    android:key="enter_is_send"
308                    android:summary="@string/pref_enter_is_send_summary"
309                    android:title="@string/pref_enter_is_send" />
310                <CheckBoxPreference
311                    android:defaultValue="@bool/display_enter_key"
312                    android:key="display_enter_key"
313                    android:summary="@string/pref_display_enter_key_summary"
314                    android:title="@string/pref_display_enter_key" />
315                <CheckBoxPreference
316                    android:defaultValue="@bool/scroll_to_bottom"
317                    android:key="scroll_to_bottom"
318                    android:summary="@string/pref_scroll_to_bottom_summary"
319                    android:title="@string/pref_scroll_to_bottom" />
320            </PreferenceCategory>
321            <PreferenceCategory android:title="@string/pref_presence_settings">
322                <CheckBoxPreference
323                    android:defaultValue="@bool/manually_change_presence"
324                    android:disableDependentsState="true"
325                    android:key="manually_change_presence"
326                    android:summary="@string/pref_manually_change_presence_summary"
327                    android:title="@string/pref_manually_change_presence" />
328                <CheckBoxPreference
329                    android:defaultValue="@bool/away_when_screen_off"
330                    android:dependency="manually_change_presence"
331                    android:key="away_when_screen_off"
332                    android:summary="@string/pref_away_when_screen_off_summary"
333                    android:title="@string/pref_away_when_screen_off" />
334                <CheckBoxPreference
335                    android:defaultValue="@bool/dnd_on_silent_mode"
336                    android:dependency="manually_change_presence"
337                    android:key="dnd_on_silent_mode"
338                    android:summary="@string/pref_dnd_on_silent_mode_summary"
339                    android:title="@string/pref_dnd_on_silent_mode" />
340                <CheckBoxPreference
341                    android:defaultValue="@bool/treat_vibrate_as_silent"
342                    android:dependency="dnd_on_silent_mode"
343                    android:key="treat_vibrate_as_silent"
344                    android:summary="@string/pref_treat_vibrate_as_dnd_summary"
345                    android:title="@string/pref_treat_vibrate_as_silent" />
346            </PreferenceCategory>
347            <PreferenceCategory
348                android:key="group_chats"
349                android:title="@string/group_chats_and_channels">
350                <CheckBoxPreference
351                    android:defaultValue="@bool/autojoin"
352                    android:key="autojoin"
353                    android:summary="@string/pref_autojoin_summary"
354                    android:title="@string/pref_autojoin" />
355                <ListPreference
356                    android:defaultValue="@string/default_channel_discovery"
357                    android:entries="@array/channel_discovery_entries"
358                    android:entryValues="@array/channel_discover_values"
359                    android:key="channel_discovery_method"
360                    android:summary="@string/pref_channel_discovery_summary"
361                    android:title="@string/pref_channel_discovery" />
362            </PreferenceCategory>
363            <intent
364                android:action="android.intent.action.VIEW"
365                android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
366                android:targetPackage="@string/applicationId">
367                <extra
368                    android:name="page"
369                    android:value="expert" />
370            </intent>
371        </PreferenceScreen>
372    </PreferenceCategory>
373    <PreferenceCategory android:title="@string/category_about">
374        <eu.siacs.conversations.ui.AboutPreference />
375    </PreferenceCategory>
376</PreferenceScreen>