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