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            <CheckBoxPreference
 91                android:defaultValue="@bool/enable_quiet_hours"
 92                android:key="enable_quiet_hours"
 93                android:summary="@string/pref_quiet_hours_summary"
 94                android:title="@string/title_pref_enable_quiet_hours"/>
 95            <eu.siacs.conversations.ui.TimePreference
 96                android:dependency="enable_quiet_hours"
 97                android:key="quiet_hours_start"
 98                android:negativeButtonText="@string/cancel"
 99                android:positiveButtonText="@string/set"
100                android:title="@string/title_pref_quiet_hours_start_time"/>
101            <eu.siacs.conversations.ui.TimePreference
102                android:dependency="enable_quiet_hours"
103                android:key="quiet_hours_end"
104                android:negativeButtonText="@string/cancel"
105                android:positiveButtonText="@string/set"
106                android:title="@string/title_pref_quiet_hours_end_time"/>
107        </PreferenceScreen>
108        <ListPreference
109            android:dependency="show_notification"
110            android:key="grace_period_length"
111            android:title="@string/pref_notification_grace_period"
112            android:summary="@string/pref_notification_grace_period_summary"
113            android:defaultValue="@integer/grace_period"
114            android:entries="@array/grace_periods"
115            android:entryValues="@array/grace_periods_values"
116            />
117    </PreferenceCategory>
118    <PreferenceCategory android:title="@string/pref_attachments">
119        <ListPreference
120            android:defaultValue="@integer/auto_accept_filesize"
121            android:entries="@array/filesizes"
122            android:entryValues="@array/filesizes_values"
123            android:key="auto_accept_file_size"
124            android:summary="@string/pref_accept_files_summary"
125            android:title="@string/pref_accept_files"/>
126        <ListPreference
127            android:defaultValue="@string/picture_compression"
128            android:entries="@array/picture_compression_entries"
129            android:entryValues="@array/picture_compression_values"
130            android:key="picture_compression"
131            android:summary="@string/pref_picture_compression_summary"
132            android:title="@string/pref_picture_compression"/>
133        <CheckBoxPreference
134            android:defaultValue="@bool/return_to_previous"
135            android:key="return_to_previous"
136            android:title="@string/pref_return_to_previous"
137            android:summary="@string/pref_return_to_previous_summary"/>
138    </PreferenceCategory>
139    <PreferenceCategory android:title="@string/pref_ui_options">
140        <ListPreference
141            android:defaultValue="@string/theme"
142            android:entries="@array/themes"
143            android:entryValues="@array/themes_values"
144            android:key="theme"
145            android:summary="@string/pref_theme_options_summary"
146            android:title="@string/pref_theme_options"/>
147        <CheckBoxPreference
148            android:defaultValue="@bool/use_subject"
149            android:key="use_subject"
150            android:summary="@string/pref_conference_name_summary"
151            android:title="@string/pref_conference_name"/>
152        <CheckBoxPreference
153            android:defaultValue="@bool/use_green_background"
154            android:key="use_green_background"
155            android:summary="@string/pref_use_green_background_summary"
156            android:title="@string/pref_use_green_background"/>
157        <CheckBoxPreference
158            android:defaultValue="@bool/use_larger_font"
159            android:key="use_larger_font"
160            android:summary="@string/pref_use_larger_font_summary"
161            android:title="@string/pref_use_larger_font"/>
162        <CheckBoxPreference
163            android:defaultValue="@bool/send_button_status"
164            android:key="send_button_status"
165            android:summary="@string/pref_use_send_button_to_indicate_status_summary"
166            android:title="@string/pref_use_send_button_to_indicate_status"/>
167        <ListPreference
168            android:defaultValue="@string/quick_action"
169            android:dialogTitle="@string/choose_quick_action"
170            android:entries="@array/quick_actions"
171            android:entryValues="@array/quick_action_values"
172            android:key="quick_action"
173            android:summary="@string/pref_quick_action_summary"
174            android:title="@string/pref_quick_action"/>
175        <CheckBoxPreference
176            android:defaultValue="@bool/show_dynamic_tags"
177            android:key="show_dynamic_tags"
178            android:summary="@string/pref_show_dynamic_tags_summary"
179            android:title="@string/pref_show_dynamic_tags"/>
180    </PreferenceCategory>
181    <PreferenceCategory
182        android:key="advanced"
183        android:title="@string/pref_advanced_options">
184        <PreferenceScreen
185            android:key="expert"
186            android:summary="@string/pref_expert_options_summary"
187            android:title="@string/pref_expert_options">
188            <PreferenceCategory android:title="@string/pref_security_settings"
189                android:key="security_options">
190                <CheckBoxPreference
191                    android:defaultValue="@bool/btbv"
192                    android:key="btbv"
193                    android:title="@string/pref_blind_trust_before_verification"
194                    android:summary="@string/pref_blind_trust_before_verification_summary"/>
195                <ListPreference
196                    android:key="automatic_message_deletion"
197                    android:title="@string/pref_automatically_delete_messages"
198                    android:summary="@string/pref_automatically_delete_messages_description"
199                    android:defaultValue="@integer/automatic_message_deletion"
200                    android:entries="@array/automatic_message_deletion"
201                    android:entryValues="@array/automatic_message_deletion_values" />
202                <CheckBoxPreference
203                    android:defaultValue="@bool/dont_trust_system_cas"
204                    android:key="dont_trust_system_cas"
205                    android:summary="@string/pref_dont_trust_system_cas_summary"
206                    android:title="@string/pref_dont_trust_system_cas_title"/>
207                <CheckBoxPreference
208                    android:defaultValue="@bool/validate_hostname"
209                    android:key="validate_hostname"
210                    android:summary="@string/pref_validate_hostname_summary"
211                    android:title="@string/pref_validate_hostname"/>
212                <Preference
213                    android:key="remove_trusted_certificates"
214                    android:summary="@string/pref_remove_trusted_certificates_summary"
215                    android:title="@string/pref_remove_trusted_certificates_title"/>
216                <CheckBoxPreference
217                    android:defaultValue="@bool/allow_message_correction"
218                    android:key="allow_message_correction"
219                    android:title="@string/pref_allow_message_correction"
220                    android:summary="@string/pref_allow_message_correction_summary"/>
221                <Preference
222                    android:key="clean_cache"
223                    android:summary="@string/pref_clean_cache_summary"
224                    android:title="@string/pref_clean_cache"/>
225                <Preference
226                    android:key="clean_private_storage"
227                    android:summary="@string/pref_clean_private_storage_summary"
228                    android:title="@string/pref_clean_private_storage"/>
229                <Preference
230                    android:key="delete_omemo_identities"
231                    android:title="@string/pref_delete_omemo_identities"
232                    android:summary="@string/pref_delete_omemo_identities_summary"/>
233            </PreferenceCategory>
234            <PreferenceCategory
235                android:key="connection_options"
236                android:title="@string/pref_connection_options">
237                <CheckBoxPreference
238                    android:defaultValue="@bool/use_tor"
239                    android:key="use_tor"
240                    android:summary="@string/pref_use_tor_summary"
241                    android:title="@string/pref_use_tor"/>
242                <CheckBoxPreference
243                    android:defaultValue="@bool/show_connection_options"
244                    android:key="show_connection_options"
245                    android:summary="@string/pref_show_connection_options_summary"
246                    android:title="@string/pref_show_connection_options"/>
247            </PreferenceCategory>
248            <PreferenceCategory android:title="@string/pref_input_options">
249                <CheckBoxPreference
250                    android:defaultValue="@bool/enter_is_send"
251                    android:key="enter_is_send"
252                    android:summary="@string/pref_enter_is_send_summary"
253                    android:title="@string/pref_enter_is_send"/>
254                <CheckBoxPreference
255                    android:defaultValue="@bool/display_enter_key"
256                    android:key="display_enter_key"
257                    android:summary="@string/pref_display_enter_key_summary"
258                    android:title="@string/pref_display_enter_key"/>
259            </PreferenceCategory>
260            <PreferenceCategory android:title="@string/pref_presence_settings">
261                <CheckBoxPreference
262                    android:defaultValue="@bool/manually_change_presence"
263                    android:key="manually_change_presence"
264                    android:title="@string/pref_manually_change_presence"
265                    android:summary="@string/pref_manually_change_presence_summary"
266                    android:disableDependentsState="true"/>
267                <CheckBoxPreference
268                    android:defaultValue="@bool/away_when_screen_off"
269                    android:key="away_when_screen_off"
270                    android:summary="@string/pref_away_when_screen_off_summary"
271                    android:title="@string/pref_away_when_screen_off"
272                    android:dependency="manually_change_presence"/>
273                <CheckBoxPreference
274                    android:defaultValue="@bool/dnd_on_silent_mode"
275                    android:key="dnd_on_silent_mode"
276                    android:summary="@string/pref_dnd_on_silent_mode_summary"
277                    android:title="@string/pref_dnd_on_silent_mode"
278                    android:dependency="manually_change_presence"/>
279                <CheckBoxPreference
280                    android:dependency="dnd_on_silent_mode"
281                    android:defaultValue="@bool/treat_vibrate_as_silent"
282                    android:key="treat_vibrate_as_silent"
283                    android:title="@string/pref_treat_vibrate_as_silent"
284                    android:summary="@string/pref_treat_vibrate_as_dnd_summary"/>
285            </PreferenceCategory>
286            <PreferenceCategory android:title="@string/pref_expert_options_other">
287                <CheckBoxPreference
288                    android:key="autojoin"
289                    android:defaultValue="@bool/autojoin"
290                    android:title="@string/pref_autojoin"
291                    android:summary="@string/pref_autojoin_summary"
292                    />
293                <CheckBoxPreference
294                    android:defaultValue="@bool/indicate_received"
295                    android:key="indicate_received"
296                    android:summary="@string/pref_use_indicate_received_summary"
297                    android:title="@string/pref_use_indicate_received"/>
298                <CheckBoxPreference
299                    android:defaultValue="@bool/enable_foreground_service"
300                    android:key="enable_foreground_service"
301                    android:summary="@string/pref_keep_foreground_service_summary"
302                    android:title="@string/pref_keep_foreground_service"/>
303                <Preference
304                    android:key="export_logs"
305                    android:summary="@string/pref_export_logs_summary"
306                    android:title="@string/pref_export_logs"/>
307            </PreferenceCategory>
308        </PreferenceScreen>
309
310        <CheckBoxPreference
311            android:defaultValue="@bool/never_send"
312            android:key="never_send"
313            android:summary="@string/pref_never_send_crash_summary"
314            android:title="@string/pref_never_send_crash"/>
315    </PreferenceCategory>
316    <eu.siacs.conversations.ui.AboutPreference
317        android:summary="@string/pref_about_conversations_summary"
318        android:title="@string/title_activity_about"/>
319</PreferenceScreen>