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