1<?xml version="1.0" encoding="utf-8"?>
2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <PreferenceCategory android:title="@string/pref_general">
5 <CheckBoxPreference
6 android:defaultValue="true"
7 android:key="grant_new_contacts"
8 android:summary="@string/pref_grant_presence_updates_summary"
9 android:title="@string/pref_grant_presence_updates"/>
10
11 <ListPreference
12 android:defaultValue="@string/default_resource"
13 android:entries="@array/resources"
14 android:entryValues="@array/resources"
15 android:key="resource"
16 android:summary="@string/pref_xmpp_resource_summary"
17 android:title="@string/pref_xmpp_resource"/>
18 <CheckBoxPreference
19 android:defaultValue="true"
20 android:key="confirm_messages"
21 android:summary="@string/pref_confirm_messages_summary"
22 android:title="@string/pref_confirm_messages"/>
23
24 <CheckBoxPreference
25 android:defaultValue="false"
26 android:key="chat_states"
27 android:summary="@string/pref_chat_states_summary"
28 android:title="@string/pref_chat_states"/>
29
30 </PreferenceCategory>
31 <PreferenceCategory
32 android:key="notifications"
33 android:title="@string/pref_notification_settings">
34 <CheckBoxPreference
35 android:defaultValue="true"
36 android:key="show_notification"
37 android:summary="@string/pref_notifications_summary"
38 android:title="@string/pref_notifications"/>
39 <CheckBoxPreference
40 android:defaultValue="true"
41 android:dependency="show_notification"
42 android:key="vibrate_on_notification"
43 android:summary="@string/pref_vibrate_summary"
44 android:title="@string/pref_vibrate"/>
45 <CheckBoxPreference
46 android:defaultValue="true"
47 android:dependency="show_notification"
48 android:key="led"
49 android:title="@string/pref_led"
50 android:summary="@string/pref_led_summary"/>
51 <RingtonePreference
52 android:defaultValue="content://settings/system/notification_sound"
53 android:dependency="show_notification"
54 android:key="notification_ringtone"
55 android:ringtoneType="notification"
56 android:summary="@string/pref_sound_summary"
57 android:title="@string/pref_sound"/>
58 <PreferenceScreen
59 android:dependency="show_notification"
60 android:key="quiet_hours"
61 android:summary="@string/pref_quiet_hours_summary"
62 android:title="@string/title_pref_quiet_hours">
63 <CheckBoxPreference
64 android:defaultValue="false"
65 android:key="enable_quiet_hours"
66 android:summary="@string/pref_quiet_hours_summary"
67 android:title="@string/title_pref_enable_quiet_hours"/>
68 <eu.siacs.conversations.ui.TimePreference
69 android:dependency="enable_quiet_hours"
70 android:key="quiet_hours_start"
71 android:negativeButtonText="@string/cancel"
72 android:positiveButtonText="@string/set"
73 android:title="@string/title_pref_quiet_hours_start_time"/>
74 <eu.siacs.conversations.ui.TimePreference
75 android:dependency="enable_quiet_hours"
76 android:key="quiet_hours_end"
77 android:negativeButtonText="@string/cancel"
78 android:positiveButtonText="@string/set"
79 android:title="@string/title_pref_quiet_hours_end_time"/>
80 </PreferenceScreen>
81 <ListPreference
82 android:dependency="show_notification"
83 android:key="grace_period_length"
84 android:title="@string/pref_notification_grace_period"
85 android:summary="@string/pref_notification_grace_period_summary"
86 android:defaultValue="144"
87 android:entries="@array/grace_periods"
88 android:entryValues="@array/grace_periods_values"
89 />
90 </PreferenceCategory>
91 <PreferenceCategory
92 android:title="@string/pref_attachments">
93 <ListPreference
94 android:defaultValue="524288"
95 android:entries="@array/filesizes"
96 android:entryValues="@array/filesizes_values"
97 android:key="auto_accept_file_size"
98 android:summary="@string/pref_accept_files_summary"
99 android:title="@string/pref_accept_files"/>
100 <ListPreference
101 android:defaultValue="auto"
102 android:entries="@array/picture_compression_entries"
103 android:entryValues="@array/picture_compression_values"
104 android:key="picture_compression"
105 android:summary="@string/pref_picture_compression_summary"
106 android:title="@string/pref_picture_compression"/>
107 <CheckBoxPreference
108 android:defaultValue="false"
109 android:key="return_to_previous"
110 android:title="@string/pref_return_to_previous"
111 android:summary="@string/pref_return_to_previous_summary"/>
112 </PreferenceCategory>
113 <PreferenceCategory android:title="@string/pref_ui_options">
114 <CheckBoxPreference
115 android:defaultValue="true"
116 android:key="use_subject"
117 android:summary="@string/pref_conference_name_summary"
118 android:title="@string/pref_conference_name"/>
119 <CheckBoxPreference
120 android:defaultValue="false"
121 android:key="use_white_background"
122 android:summary="@string/pref_use_white_background_summary"
123 android:title="@string/pref_use_white_background"/>
124 <CheckBoxPreference
125 android:defaultValue="false"
126 android:key="use_larger_font"
127 android:summary="@string/pref_use_larger_font_summary"
128 android:title="@string/pref_use_larger_font"/>
129 <CheckBoxPreference
130 android:defaultValue="false"
131 android:key="send_button_status"
132 android:summary="@string/pref_use_send_button_to_indicate_status_summary"
133 android:title="@string/pref_use_send_button_to_indicate_status"/>
134 <ListPreference
135 android:defaultValue="recent"
136 android:dialogTitle="@string/choose_quick_action"
137 android:entries="@array/quick_actions"
138 android:entryValues="@array/quick_action_values"
139 android:key="quick_action"
140 android:summary="@string/pref_quick_action_summary"
141 android:title="@string/pref_quick_action"/>
142 <CheckBoxPreference
143 android:defaultValue="false"
144 android:key="show_dynamic_tags"
145 android:summary="@string/pref_show_dynamic_tags_summary"
146 android:title="@string/pref_show_dynamic_tags"/>
147 </PreferenceCategory>
148 <PreferenceCategory
149 android:key="advanced"
150 android:title="@string/pref_advanced_options">
151 <PreferenceScreen
152 android:key="expert"
153 android:summary="@string/pref_expert_options_summary"
154 android:title="@string/pref_expert_options">
155 <PreferenceCategory android:title="@string/pref_security_settings">
156 <CheckBoxPreference
157 android:defaultValue="false"
158 android:key="dont_save_encrypted"
159 android:summary="@string/pref_dont_save_encrypted_summary"
160 android:title="@string/pref_dont_save_encrypted"/>
161 <CheckBoxPreference
162 android:defaultValue="false"
163 android:key="dont_trust_system_cas"
164 android:summary="@string/pref_dont_trust_system_cas_summary"
165 android:title="@string/pref_dont_trust_system_cas_title"/>
166 <Preference
167 android:key="remove_trusted_certificates"
168 android:summary="@string/pref_remove_trusted_certificates_summary"
169 android:title="@string/pref_remove_trusted_certificates_title"/>
170 <CheckBoxPreference
171 android:defaultValue="false"
172 android:key="allow_message_correction"
173 android:title="@string/pref_allow_message_correction"
174 android:summary="@string/pref_allow_message_correction_summary"/>
175 </PreferenceCategory>
176 <PreferenceCategory
177 android:key="connection_options"
178 android:title="@string/pref_connection_options">
179 <CheckBoxPreference
180 android:defaultValue="false"
181 android:key="use_tor"
182 android:summary="@string/pref_use_tor_summary"
183 android:title="@string/pref_use_tor"/>
184 <CheckBoxPreference
185 android:defaultValue="false"
186 android:key="show_connection_options"
187 android:summary="@string/pref_show_connection_options_summary"
188 android:title="@string/pref_show_connection_options"/>
189 </PreferenceCategory>
190 <PreferenceCategory android:title="@string/pref_input_options">
191 <CheckBoxPreference
192 android:defaultValue="false"
193 android:key="enter_is_send"
194 android:summary="@string/pref_enter_is_send_summary"
195 android:title="@string/pref_enter_is_send"/>
196 <CheckBoxPreference
197 android:defaultValue="false"
198 android:key="display_enter_key"
199 android:summary="@string/pref_display_enter_key_summary"
200 android:title="@string/pref_display_enter_key"/>
201 </PreferenceCategory>
202 <PreferenceCategory android:title="@string/pref_presence_settings">
203 <CheckBoxPreference
204 android:defaultValue="false"
205 android:key="manually_change_presence"
206 android:title="@string/pref_manually_change_presence"
207 android:summary="@string/pref_manually_change_presence_summary"
208 android:disableDependentsState="true"/>
209 <CheckBoxPreference
210 android:defaultValue="false"
211 android:key="away_when_screen_off"
212 android:summary="@string/pref_away_when_screen_off_summary"
213 android:title="@string/pref_away_when_screen_off"
214 android:dependency="manually_change_presence"/>
215 <CheckBoxPreference
216 android:defaultValue="false"
217 android:key="xa_on_silent_mode"
218 android:summary="@string/pref_xa_on_silent_mode_summary"
219 android:title="@string/pref_xa_on_silent_mode"
220 android:dependency="manually_change_presence"/>
221 <CheckBoxPreference
222 android:dependency="xa_on_silent_mode"
223 android:defaultValue="false"
224 android:key="treat_vibrate_as_silent"
225 android:title="@string/pref_treat_vibrate_as_silent"
226 android:summary="@string/pref_treat_vibrate_as_silent_summary"/>
227 </PreferenceCategory>
228 <PreferenceCategory android:title="@string/pref_expert_options_other">
229 <CheckBoxPreference
230 android:key="autojoin"
231 android:defaultValue="true"
232 android:title="@string/pref_autojoin"
233 android:summary="@string/pref_autojoin_summary"
234 />
235 <CheckBoxPreference
236 android:defaultValue="false"
237 android:key="indicate_received"
238 android:summary="@string/pref_use_indicate_received_summary"
239 android:title="@string/pref_use_indicate_received"/>
240 <CheckBoxPreference
241 android:defaultValue="false"
242 android:key="keep_foreground_service"
243 android:summary="@string/pref_keep_foreground_service_summary"
244 android:title="@string/pref_keep_foreground_service"/>
245 <eu.siacs.conversations.ui.ExportLogsPreference
246 android:key="export_logs"
247 android:summary="@string/pref_export_logs_summary"
248 android:title="@string/pref_export_logs"/>
249 </PreferenceCategory>
250 </PreferenceScreen>
251
252 <CheckBoxPreference
253 android:defaultValue="false"
254 android:key="never_send"
255 android:summary="@string/pref_never_send_crash_summary"
256 android:title="@string/pref_never_send_crash"/>
257 </PreferenceCategory>
258 <eu.siacs.conversations.ui.AboutPreference
259 android:summary="@string/pref_about_conversations_summary"
260 android:title="@string/title_activity_about"/>
261</PreferenceScreen>