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