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