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