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