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