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