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