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="Mobile"
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 <ListPreference
19 android:defaultValue="524288"
20 android:entries="@array/filesizes"
21 android:entryValues="@array/filesizes_values"
22 android:key="auto_accept_file_size"
23 android:summary="@string/pref_accept_files_summary"
24 android:title="@string/pref_accept_files" />
25
26 <CheckBoxPreference
27 android:defaultValue="true"
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="false"
34 android:key="chat_states"
35 android:summary="@string/pref_chat_states_summary"
36 android:title="@string/pref_chat_states" />
37
38 </PreferenceCategory>
39 <PreferenceCategory
40 android:title="@string/pref_notification_settings"
41 android:key="notifications">
42 <CheckBoxPreference
43 android:defaultValue="true"
44 android:key="show_notification"
45 android:summary="@string/pref_notifications_summary"
46 android:title="@string/pref_notifications" />
47 <PreferenceScreen
48 android:dependency="show_notification"
49 android:summary="@string/pref_quiet_hours_summary"
50 android:title="@string/title_pref_quiet_hours"
51 android:key="quiet_hours">
52 <CheckBoxPreference
53 android:defaultValue="false"
54 android:key="enable_quiet_hours"
55 android:summary="@string/pref_quiet_hours_summary"
56 android:title="@string/title_pref_enable_quiet_hours" />
57 <eu.siacs.conversations.ui.TimePreference
58 android:dependency="enable_quiet_hours"
59 android:key="quiet_hours_start"
60 android:negativeButtonText="@string/cancel"
61 android:positiveButtonText="@string/set"
62 android:title="@string/title_pref_quiet_hours_start_time" />
63 <eu.siacs.conversations.ui.TimePreference
64 android:dependency="enable_quiet_hours"
65 android:key="quiet_hours_end"
66 android:negativeButtonText="@string/cancel"
67 android:positiveButtonText="@string/set"
68 android:title="@string/title_pref_quiet_hours_end_time" />
69 </PreferenceScreen>
70 <CheckBoxPreference
71 android:defaultValue="true"
72 android:dependency="show_notification"
73 android:key="vibrate_on_notification"
74 android:summary="@string/pref_vibrate_summary"
75 android:title="@string/pref_vibrate" />
76
77 <RingtonePreference
78 android:defaultValue="content://settings/system/notification_sound"
79 android:dependency="show_notification"
80 android:key="notification_ringtone"
81 android:ringtoneType="notification"
82 android:summary="@string/pref_sound_summary"
83 android:title="@string/pref_sound" />
84
85 <CheckBoxPreference
86 android:defaultValue="false"
87 android:dependency="show_notification"
88 android:key="always_notify_in_conference"
89 android:summary="@string/pref_conference_notifications_summary"
90 android:title="@string/pref_conference_notifications" />
91 </PreferenceCategory>
92 <PreferenceCategory android:title="@string/pref_ui_options" >
93 <CheckBoxPreference
94 android:defaultValue="true"
95 android:key="use_subject"
96 android:summary="@string/pref_conference_name_summary"
97 android:title="@string/pref_conference_name" />
98 <CheckBoxPreference
99 android:defaultValue="false"
100 android:key="use_larger_font"
101 android:summary="@string/pref_use_larger_font_summary"
102 android:title="@string/pref_use_larger_font" />
103 <CheckBoxPreference
104 android:defaultValue="false"
105 android:key="send_button_status"
106 android:summary="@string/pref_use_send_button_to_indicate_status_summary"
107 android:title="@string/pref_use_send_button_to_indicate_status" />
108 <ListPreference
109 android:key="quick_action"
110 android:defaultValue="recent"
111 android:entries="@array/quick_actions"
112 android:entryValues="@array/quick_action_values"
113 android:summary="@string/pref_quick_action_summary"
114 android:title="@string/pref_quick_action"
115 android:dialogTitle="@string/choose_quick_action"/>
116 <CheckBoxPreference
117 android:defaultValue="false"
118 android:key="show_dynamic_tags"
119 android:summary="@string/pref_show_dynamic_tags_summary"
120 android:title="@string/pref_show_dynamic_tags" />
121 </PreferenceCategory>
122 <PreferenceCategory
123 android:title="@string/pref_advanced_options"
124 android:key="advanced">
125 <PreferenceScreen
126 android:summary="@string/pref_expert_options_summary"
127 android:title="@string/pref_expert_options"
128 android:key="expert">
129 <PreferenceCategory android:title="@string/pref_encryption_settings" >
130 <CheckBoxPreference
131 android:defaultValue="false"
132 android:key="force_encryption"
133 android:summary="@string/pref_force_encryption_summary"
134 android:title="@string/pref_force_encryption" />
135 <CheckBoxPreference
136 android:defaultValue="false"
137 android:key="dont_save_encrypted"
138 android:summary="@string/pref_dont_save_encrypted_summary"
139 android:title="@string/pref_dont_save_encrypted" />
140 </PreferenceCategory>
141 <PreferenceCategory android:title="@string/pref_input_options">
142 <CheckBoxPreference
143 android:defaultValue="false"
144 android:key="enter_is_send"
145 android:title="@string/pref_enter_is_send"
146 android:summary="@string/pref_enter_is_send_summary" />
147 <CheckBoxPreference
148 android:defaultValue="false"
149 android:key="display_enter_key"
150 android:title="@string/pref_display_enter_key"
151 android:summary="@string/pref_display_enter_key_summary" />
152 </PreferenceCategory>
153 <PreferenceCategory android:title="@string/pref_certificate_options">
154 <CheckBoxPreference
155 android:defaultValue="false"
156 android:key="dont_trust_system_cas"
157 android:title="@string/pref_dont_trust_system_cas_title"
158 android:summary="@string/pref_dont_trust_system_cas_summary" />
159 <Preference
160 android:key="remove_trusted_certificates"
161 android:title="@string/pref_remove_trusted_certificates_title"
162 android:summary="@string/pref_remove_trusted_certificates_summary" />
163 </PreferenceCategory>
164 <PreferenceCategory android:title="@string/pref_expert_options_other" >
165 <CheckBoxPreference
166 android:defaultValue="false"
167 android:key="indicate_received"
168 android:summary="@string/pref_use_indicate_received_summary"
169 android:title="@string/pref_use_indicate_received" />
170 <CheckBoxPreference
171 android:defaultValue="false"
172 android:key="keep_foreground_service"
173 android:title="@string/pref_keep_foreground_service"
174 android:summary="@string/pref_keep_foreground_service_summary" />
175 </PreferenceCategory>
176 </PreferenceScreen>
177
178 <CheckBoxPreference
179 android:defaultValue="false"
180 android:key="never_send"
181 android:summary="@string/pref_never_send_crash_summary"
182 android:title="@string/pref_never_send_crash" />
183 </PreferenceCategory>
184 <eu.siacs.conversations.ui.AboutPreference
185 android:summary="@string/pref_about_conversations_summary"
186 android:title="@string/title_activity_about" />
187</PreferenceScreen>