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
  6    <PreferenceCategory
  7        android:key="general"
  8        android:title="@string/pref_general">
  9        <PreferenceScreen
 10            android:key="huawei"
 11            android:summary="@string/huawei_protected_apps_summary"
 12            android:title="@string/huawei_protected_apps">
 13            <intent
 14                android:targetClass="com.huawei.systemmanager.optimize.process.ProtectActivity"
 15                android:targetPackage="com.huawei.systemmanager" />
 16        </PreferenceScreen>
 17    </PreferenceCategory>
 18    <PreferenceCategory android:title="@string/pref_privacy">
 19        <CheckBoxPreference
 20            android:defaultValue="@bool/confirm_messages"
 21            android:key="confirm_messages"
 22            android:summary="@string/pref_confirm_messages_summary"
 23            android:title="@string/pref_confirm_messages" />
 24        <CheckBoxPreference
 25            android:defaultValue="@bool/chat_states"
 26            android:key="chat_states"
 27            android:summary="@string/pref_chat_states_summary"
 28            android:title="@string/pref_chat_states" />
 29
 30        <CheckBoxPreference
 31            android:defaultValue="@bool/last_activity"
 32            android:key="last_activity"
 33            android:summary="@string/pref_broadcast_last_activity_summary"
 34            android:title="@string/pref_broadcast_last_activity" />
 35
 36        <CheckBoxPreference
 37            android:defaultValue="@bool/prevent_screenshots"
 38            android:key="prevent_screenshots"
 39            android:summary="@string/pref_prevent_screenshots_summary"
 40            android:title="@string/pref_prevent_screenshots" />
 41
 42        <ListPreference
 43            android:defaultValue="@string/omemo_setting_default"
 44            android:entries="@array/omemo_setting_entries"
 45            android:entryValues="@array/omemo_setting_entry_values"
 46            android:key="omemo"
 47            android:summary="@string/pref_omemo_setting_summary_default_on"
 48            android:title="@string/pref_omemo_setting" />
 49    </PreferenceCategory>
 50    <PreferenceCategory
 51        android:key="notification_category"
 52        android:title="@string/pref_notification_settings">
 53        <CheckBoxPreference
 54            android:defaultValue="@bool/notifications_from_strangers"
 55            android:key="notifications_from_strangers"
 56            android:summary="@string/pref_notifications_from_strangers_summary"
 57            android:title="@string/pref_notifications_from_strangers" />
 58        <CheckBoxPreference
 59            android:defaultValue="@bool/headsup_notifications"
 60            android:key="notification_headsup"
 61            android:summary="@string/pref_headsup_notifications_summary"
 62            android:title="@string/pref_headsup_notifications" />
 63        <CheckBoxPreference
 64            android:defaultValue="@bool/vibrate_on_notification"
 65            android:key="vibrate_on_notification"
 66            android:summary="@string/pref_vibrate_summary"
 67            android:title="@string/pref_vibrate" />
 68        <CheckBoxPreference
 69            android:defaultValue="@bool/led"
 70            android:key="led"
 71            android:summary="@string/pref_led_summary"
 72            android:title="@string/pref_led" />
 73        <ListPreference
 74            android:defaultValue="@integer/grace_period"
 75            android:entries="@array/grace_periods"
 76            android:entryValues="@array/grace_periods_values"
 77            android:key="grace_period_length"
 78            android:summary="@string/pref_notification_grace_period_summary"
 79            android:title="@string/pref_notification_grace_period" />
 80        <PreferenceScreen
 81            android:key="quiet_hours"
 82            android:summary="@string/pref_quiet_hours_summary"
 83            android:title="@string/title_pref_quiet_hours">
 84            <CheckBoxPreference
 85                android:defaultValue="@bool/enable_quiet_hours"
 86                android:key="enable_quiet_hours"
 87                android:summary="@string/pref_quiet_hours_summary"
 88                android:title="@string/title_pref_enable_quiet_hours" />
 89            <eu.siacs.conversations.ui.TimePreference
 90                android:dependency="enable_quiet_hours"
 91                android:key="quiet_hours_start"
 92                android:negativeButtonText="@string/cancel"
 93                android:positiveButtonText="@string/set"
 94                android:title="@string/title_pref_quiet_hours_start_time" />
 95            <eu.siacs.conversations.ui.TimePreference
 96                android:dependency="enable_quiet_hours"
 97                android:key="quiet_hours_end"
 98                android:negativeButtonText="@string/cancel"
 99                android:positiveButtonText="@string/set"
100                android:title="@string/title_pref_quiet_hours_end_time" />
101            <intent
102                android:action="android.intent.action.VIEW"
103                android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
104                android:targetPackage="@string/applicationId">
105                <extra
106                    android:name="page"
107                    android:value="quiet_hours" />
108            </intent>
109        </PreferenceScreen>
110        <PreferenceScreen
111            android:key="message_notification_settings"
112            android:summary="@string/pref_more_notification_settings_summary"
113            android:title="@string/pref_message_notification_settings">
114            <intent android:action="android.settings.CHANNEL_NOTIFICATION_SETTINGS">
115                <extra
116                    android:name="android.provider.extra.APP_PACKAGE"
117                    android:value="@string/applicationId" />
118                <extra
119                    android:name="android.provider.extra.CHANNEL_ID"
120                    android:value="messages" />
121            </intent>
122        </PreferenceScreen>
123        <RingtonePreference
124            android:defaultValue="@string/notification_ringtone"
125            android:key="notification_ringtone"
126            android:ringtoneType="notification"
127            android:summary="@string/pref_notification_sound_summary"
128            android:title="@string/pref_notification_sound" />
129        <RingtonePreference
130            android:defaultValue="@string/incoming_call_ringtone"
131            android:key="call_ringtone"
132            android:ringtoneType="ringtone"
133            android:summary="@string/pref_call_ringtone_summary"
134            android:title="@string/pref_ringtone" />
135    </PreferenceCategory>
136    <PreferenceCategory
137        android:key="attachments"
138        android:title="@string/pref_attachments">
139        <CheckBoxPreference
140            android:defaultValue="@bool/use_share_location_plugin"
141            android:key="use_share_location_plugin"
142            android:summary="@string/pref_use_share_location_plugin_summary"
143            android:title="@string/pref_use_share_location_plugin" />
144        <ListPreference
145            android:defaultValue="@string/picture_compression"
146            android:entries="@array/picture_compression_entries"
147            android:entryValues="@array/picture_compression_values"
148            android:key="picture_compression"
149            android:summary="@string/pref_picture_compression_summary"
150            android:title="@string/pref_picture_compression" />
151        <ListPreference
152            android:defaultValue="@string/video_compression"
153            android:entries="@array/video_compression_entries"
154            android:entryValues="@array/video_compression_values"
155            android:key="video_compression"
156            android:summary="@string/pref_video_compression_summary"
157            android:title="@string/pref_video_compression" />
158        <ListPreference
159            android:defaultValue="@integer/auto_accept_filesize"
160            android:entries="@array/filesizes"
161            android:entryValues="@array/filesizes_values"
162            android:key="auto_accept_file_size"
163            android:summary="@string/pref_accept_files_summary"
164            android:title="@string/pref_accept_files" />
165    </PreferenceCategory>
166    <PreferenceCategory android:title="@string/pref_ui_options">
167        <CheckBoxPreference
168            android:defaultValue="@bool/use_green_background"
169            android:key="use_green_background"
170            android:summary="@string/pref_use_green_background_summary"
171            android:title="@string/pref_use_green_background" />
172        <CheckBoxPreference
173            android:defaultValue="@bool/show_dynamic_tags"
174            android:key="show_dynamic_tags"
175            android:summary="@string/pref_show_dynamic_tags_summary"
176            android:title="@string/pref_show_dynamic_tags" />
177        <ListPreference
178            android:defaultValue="@string/theme"
179            android:entries="@array/themes"
180            android:entryValues="@array/themes_values"
181            android:key="theme"
182            android:summary="@string/pref_theme_options_summary"
183            android:title="@string/pref_theme_options" />
184        <ListPreference
185            android:defaultValue="@string/quick_action"
186            android:dialogTitle="@string/choose_quick_action"
187            android:entries="@array/quick_actions"
188            android:entryValues="@array/quick_action_values"
189            android:key="quick_action"
190            android:summary="@string/pref_quick_action_summary"
191            android:title="@string/pref_quick_action" />
192        <ListPreference
193            android:defaultValue="@string/default_font_size"
194            android:entries="@array/font_size_entries"
195            android:entryValues="@array/font_size_entry_values"
196            android:key="font_size"
197            android:summary="@string/pref_font_size_summary"
198            android:title="@string/pref_font_size" />
199    </PreferenceCategory>
200    <PreferenceCategory
201        android:key="backup_category"
202        android:title="@string/backup">
203        <Preference
204            android:key="create_backup"
205            android:summary="@string/pref_create_backup_summary"
206            android:title="@string/pref_create_backup" />
207    </PreferenceCategory>
208    <PreferenceCategory
209        android:key="advanced"
210        android:title="@string/pref_advanced_options">
211        <CheckBoxPreference
212            android:defaultValue="@bool/never_send"
213            android:key="never_send"
214            android:summary="@string/pref_never_send_crash_summary"
215            android:title="@string/pref_never_send_crash" />
216
217        <CheckBoxPreference
218            android:defaultValue="@bool/enable_foreground_service"
219            android:key="enable_foreground_service"
220            android:summary="@string/pref_keep_foreground_service_summary"
221            android:title="@string/pref_keep_foreground_service" />
222
223        <PreferenceScreen
224            android:key="expert"
225            android:summary="@string/pref_expert_options_summary"
226            android:title="@string/pref_expert_options">
227            <PreferenceCategory
228                android:key="security_options"
229                android:title="@string/pref_security_settings">
230                <CheckBoxPreference
231                    android:defaultValue="@bool/btbv"
232                    android:key="btbv"
233                    android:summary="@string/pref_blind_trust_before_verification_summary"
234                    android:title="@string/pref_blind_trust_before_verification" />
235                <CheckBoxPreference
236                    android:defaultValue="@bool/dont_trust_system_cas"
237                    android:key="dont_trust_system_cas"
238                    android:summary="@string/pref_dont_trust_system_cas_summary"
239                    android:title="@string/pref_dont_trust_system_cas_title" />
240                <CheckBoxPreference
241                    android:defaultValue="@bool/validate_hostname"
242                    android:key="validate_hostname"
243                    android:summary="@string/pref_validate_hostname_summary"
244                    android:title="@string/pref_validate_hostname" />
245                <CheckBoxPreference
246                    android:defaultValue="@bool/allow_message_correction"
247                    android:key="allow_message_correction"
248                    android:summary="@string/pref_allow_message_correction_summary"
249                    android:title="@string/pref_allow_message_correction" />
250                <ListPreference
251                    android:defaultValue="@integer/automatic_message_deletion"
252                    android:key="automatic_message_deletion"
253                    android:summary="@string/pref_automatically_delete_messages_description"
254                    android:title="@string/pref_automatically_delete_messages" />
255                <Preference
256                    android:key="remove_trusted_certificates"
257                    android:summary="@string/pref_remove_trusted_certificates_summary"
258                    android:title="@string/pref_remove_trusted_certificates_title" />
259                <Preference
260                    android:key="clean_cache"
261                    android:summary="@string/pref_clean_cache_summary"
262                    android:title="@string/pref_clean_cache" />
263                <Preference
264                    android:key="clean_private_storage"
265                    android:summary="@string/pref_clean_private_storage_summary"
266                    android:title="@string/pref_clean_private_storage" />
267                <Preference
268                    android:key="delete_omemo_identities"
269                    android:summary="@string/pref_delete_omemo_identities_summary"
270                    android:title="@string/pref_delete_omemo_identities" />
271            </PreferenceCategory>
272            <PreferenceCategory
273                android:key="connection_options"
274                android:title="@string/pref_connection_options">
275                <CheckBoxPreference
276                    android:defaultValue="@bool/use_tor"
277                    android:key="use_tor"
278                    android:summary="@string/pref_use_tor_summary"
279                    android:title="@string/pref_use_tor" />
280                <CheckBoxPreference
281                    android:defaultValue="@bool/show_connection_options"
282                    android:key="show_connection_options"
283                    android:summary="@string/pref_show_connection_options_summary"
284                    android:title="@string/pref_show_connection_options" />
285            </PreferenceCategory>
286            <PreferenceCategory android:title="@string/pref_input_options">
287                <CheckBoxPreference
288                    android:defaultValue="@bool/start_searching"
289                    android:key="start_searching"
290                    android:summary="@string/pref_start_search_summary"
291                    android:title="@string/pref_start_search" />
292                <CheckBoxPreference
293                    android:defaultValue="@bool/enter_is_send"
294                    android:key="enter_is_send"
295                    android:summary="@string/pref_enter_is_send_summary"
296                    android:title="@string/pref_enter_is_send" />
297                <CheckBoxPreference
298                    android:defaultValue="@bool/display_enter_key"
299                    android:key="display_enter_key"
300                    android:summary="@string/pref_display_enter_key_summary"
301                    android:title="@string/pref_display_enter_key" />
302                <CheckBoxPreference
303                    android:defaultValue="@bool/scroll_to_bottom"
304                    android:key="scroll_to_bottom"
305                    android:summary="@string/pref_scroll_to_bottom_summary"
306                    android:title="@string/pref_scroll_to_bottom" />
307            </PreferenceCategory>
308            <PreferenceCategory android:title="@string/pref_presence_settings">
309                <CheckBoxPreference
310                    android:defaultValue="@bool/manually_change_presence"
311                    android:disableDependentsState="true"
312                    android:key="manually_change_presence"
313                    android:summary="@string/pref_manually_change_presence_summary"
314                    android:title="@string/pref_manually_change_presence" />
315                <CheckBoxPreference
316                    android:defaultValue="@bool/away_when_screen_off"
317                    android:dependency="manually_change_presence"
318                    android:key="away_when_screen_off"
319                    android:summary="@string/pref_away_when_screen_off_summary"
320                    android:title="@string/pref_away_when_screen_off" />
321                <CheckBoxPreference
322                    android:defaultValue="@bool/dnd_on_silent_mode"
323                    android:dependency="manually_change_presence"
324                    android:key="dnd_on_silent_mode"
325                    android:summary="@string/pref_dnd_on_silent_mode_summary"
326                    android:title="@string/pref_dnd_on_silent_mode" />
327                <CheckBoxPreference
328                    android:defaultValue="@bool/treat_vibrate_as_silent"
329                    android:dependency="dnd_on_silent_mode"
330                    android:key="treat_vibrate_as_silent"
331                    android:summary="@string/pref_treat_vibrate_as_dnd_summary"
332                    android:title="@string/pref_treat_vibrate_as_silent" />
333            </PreferenceCategory>
334            <PreferenceCategory
335                android:key="group_chats"
336                android:title="@string/group_chats_and_channels">
337                <CheckBoxPreference
338                    android:defaultValue="@bool/autojoin"
339                    android:key="autojoin"
340                    android:summary="@string/pref_autojoin_summary"
341                    android:title="@string/pref_autojoin" />
342                <ListPreference
343                    android:defaultValue="@string/default_channel_discovery"
344                    android:entries="@array/channel_discovery_entries"
345                    android:entryValues="@array/channel_discover_values"
346                    android:key="channel_discovery_method"
347                    android:summary="@string/pref_channel_discovery_summary"
348                    android:title="@string/pref_channel_discovery" />
349            </PreferenceCategory>
350            <intent
351                android:action="android.intent.action.VIEW"
352                android:targetClass="eu.siacs.conversations.ui.SettingsActivity"
353                android:targetPackage="@string/applicationId">
354                <extra
355                    android:name="page"
356                    android:value="expert" />
357            </intent>
358        </PreferenceScreen>
359    </PreferenceCategory>
360    <PreferenceCategory android:title="@string/category_about">
361        <eu.siacs.conversations.ui.AboutPreference />
362    </PreferenceCategory>
363</PreferenceScreen>