preferences.xml

  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        <CheckBoxPreference
 21            android:defaultValue="@bool/confirm_messages"
 22            android:key="confirm_messages"
 23            android:summary="@string/pref_confirm_messages_summary"
 24            android:title="@string/pref_confirm_messages"/>
 25
 26        <CheckBoxPreference
 27            android:defaultValue="@bool/chat_states"
 28            android:key="chat_states"
 29            android:summary="@string/pref_chat_states_summary"
 30            android:title="@string/pref_chat_states"/>
 31        <CheckBoxPreference
 32            android:defaultValue="@bool/last_activity"
 33            android:key="last_activity"
 34            android:title="@string/pref_broadcast_last_activity"
 35            android:summary="@string/pref_broadcast_last_activity_summary"/>
 36        </PreferenceCategory>
 37    <PreferenceCategory android:title="@string/pref_notification_settings">
 38        <CheckBoxPreference
 39            android:defaultValue="@bool/show_notification"
 40            android:key="show_notification"
 41            android:summary="@string/pref_notifications_summary"
 42            android:title="@string/pref_notifications"/>
 43        <CheckBoxPreference
 44            android:defaultValue="@bool/notifications_from_strangers"
 45            android:key="notifications_from_strangers"
 46            android:dependency="show_notification"
 47            android:title="@string/pref_notifications_from_strangers"
 48            android:summary="@string/pref_notifications_from_strangers_summary"/>
 49        <CheckBoxPreference
 50            android:defaultValue="@bool/headsup_notifications"
 51            android:dependency="show_notification"
 52            android:key="notification_headsup"
 53            android:title="@string/pref_headsup_notifications"
 54            android:summary="@string/pref_headsup_notifications_summary"/>
 55        <CheckBoxPreference
 56            android:defaultValue="@bool/vibrate_on_notification"
 57            android:dependency="show_notification"
 58            android:key="vibrate_on_notification"
 59            android:summary="@string/pref_vibrate_summary"
 60            android:title="@string/pref_vibrate"/>
 61        <CheckBoxPreference
 62            android:defaultValue="@bool/led"
 63            android:dependency="show_notification"
 64            android:key="led"
 65            android:title="@string/pref_led"
 66            android:summary="@string/pref_led_summary"/>
 67        <RingtonePreference
 68            android:defaultValue="@string/notification_ringtone"
 69            android:dependency="show_notification"
 70            android:key="notification_ringtone"
 71            android:ringtoneType="notification"
 72            android:summary="@string/pref_sound_summary"
 73            android:title="@string/pref_sound"/>
 74        <PreferenceScreen
 75            android:dependency="show_notification"
 76            android:key="quiet_hours"
 77            android:summary="@string/pref_quiet_hours_summary"
 78            android:title="@string/title_pref_quiet_hours">
 79            <intent
 80                android:action="android.intent.action.VIEW"
 81                android:targetPackage="@string/applicationId"
 82                android:targetClass="eu.siacs.conversations.ui.SettingsActivity" >
 83                <extra android:name="page" android:value="quiet_hours" />
 84            </intent>
 85            <CheckBoxPreference
 86                android:defaultValue="@bool/enable_quiet_hours"
 87                android:key="enable_quiet_hours"
 88                android:summary="@string/pref_quiet_hours_summary"
 89                android:title="@string/title_pref_enable_quiet_hours"/>
 90            <eu.siacs.conversations.ui.TimePreference
 91                android:dependency="enable_quiet_hours"
 92                android:key="quiet_hours_start"
 93                android:negativeButtonText="@string/cancel"
 94                android:positiveButtonText="@string/set"
 95                android:title="@string/title_pref_quiet_hours_start_time"/>
 96            <eu.siacs.conversations.ui.TimePreference
 97                android:dependency="enable_quiet_hours"
 98                android:key="quiet_hours_end"
 99                android:negativeButtonText="@string/cancel"
100                android:positiveButtonText="@string/set"
101                android:title="@string/title_pref_quiet_hours_end_time"/>
102        </PreferenceScreen>
103        <ListPreference
104            android:dependency="show_notification"
105            android:key="grace_period_length"
106            android:title="@string/pref_notification_grace_period"
107            android:summary="@string/pref_notification_grace_period_summary"
108            android:defaultValue="@integer/grace_period"
109            android:entries="@array/grace_periods"
110            android:entryValues="@array/grace_periods_values"
111            />
112    </PreferenceCategory>
113    <PreferenceCategory android:title="@string/pref_attachments">
114        <ListPreference
115            android:defaultValue="@integer/auto_accept_filesize"
116            android:entries="@array/filesizes"
117            android:entryValues="@array/filesizes_values"
118            android:key="auto_accept_file_size"
119            android:summary="@string/pref_accept_files_summary"
120            android:title="@string/pref_accept_files"/>
121        <ListPreference
122            android:defaultValue="@string/picture_compression"
123            android:entries="@array/picture_compression_entries"
124            android:entryValues="@array/picture_compression_values"
125            android:key="picture_compression"
126            android:summary="@string/pref_picture_compression_summary"
127            android:title="@string/pref_picture_compression"/>
128        <CheckBoxPreference
129            android:defaultValue="@bool/return_to_previous"
130            android:key="return_to_previous"
131            android:title="@string/pref_return_to_previous"
132            android:summary="@string/pref_return_to_previous_summary"/>
133    </PreferenceCategory>
134    <PreferenceCategory android:title="@string/pref_ui_options">
135        <ListPreference
136            android:defaultValue="@string/theme"
137            android:entries="@array/themes"
138            android:entryValues="@array/themes_values"
139            android:key="theme"
140            android:summary="@string/pref_theme_options_summary"
141            android:title="@string/pref_theme_options"/>
142        <CheckBoxPreference
143            android:defaultValue="@bool/use_subject"
144            android:key="use_subject"
145            android:summary="@string/pref_conference_name_summary"
146            android:title="@string/pref_conference_name"/>
147        <CheckBoxPreference
148            android:defaultValue="@bool/use_green_background"
149            android:key="use_green_background"
150            android:summary="@string/pref_use_green_background_summary"
151            android:title="@string/pref_use_green_background"/>
152        <CheckBoxPreference
153            android:defaultValue="@bool/send_button_status"
154            android:key="send_button_status"
155            android:summary="@string/pref_use_send_button_to_indicate_status_summary"
156            android:title="@string/pref_use_send_button_to_indicate_status"/>
157        <ListPreference
158            android:defaultValue="@string/quick_action"
159            android:dialogTitle="@string/choose_quick_action"
160            android:entries="@array/quick_actions"
161            android:entryValues="@array/quick_action_values"
162            android:key="quick_action"
163            android:summary="@string/pref_quick_action_summary"
164            android:title="@string/pref_quick_action"/>
165        <CheckBoxPreference
166            android:defaultValue="@bool/show_dynamic_tags"
167            android:key="show_dynamic_tags"
168            android:summary="@string/pref_show_dynamic_tags_summary"
169            android:title="@string/pref_show_dynamic_tags"/>
170    </PreferenceCategory>
171    <PreferenceCategory
172        android:key="advanced"
173        android:title="@string/pref_advanced_options">
174        <PreferenceScreen
175            android:key="expert"
176            android:summary="@string/pref_expert_options_summary"
177            android:title="@string/pref_expert_options">
178            <intent
179                android:action="android.intent.action.VIEW"
180                android:targetPackage="@string/applicationId"
181                android:targetClass="eu.siacs.conversations.ui.SettingsActivity" >
182                <extra android:name="page" android:value="expert" />
183            </intent>
184            <PreferenceCategory android:title="@string/pref_security_settings"
185                android:key="security_options">
186                <CheckBoxPreference
187                    android:defaultValue="@bool/btbv"
188                    android:key="btbv"
189                    android:title="@string/pref_blind_trust_before_verification"
190                    android:summary="@string/pref_blind_trust_before_verification_summary"/>
191                <ListPreference
192                    android:key="automatic_message_deletion"
193                    android:title="@string/pref_automatically_delete_messages"
194                    android:summary="@string/pref_automatically_delete_messages_description"
195                    android:defaultValue="@integer/automatic_message_deletion"/>
196                <CheckBoxPreference
197                    android:defaultValue="@bool/dont_trust_system_cas"
198                    android:key="dont_trust_system_cas"
199                    android:summary="@string/pref_dont_trust_system_cas_summary"
200                    android:title="@string/pref_dont_trust_system_cas_title"/>
201                <CheckBoxPreference
202                    android:defaultValue="@bool/validate_hostname"
203                    android:key="validate_hostname"
204                    android:summary="@string/pref_validate_hostname_summary"
205                    android:title="@string/pref_validate_hostname"/>
206                <Preference
207                    android:key="remove_trusted_certificates"
208                    android:summary="@string/pref_remove_trusted_certificates_summary"
209                    android:title="@string/pref_remove_trusted_certificates_title"/>
210                <CheckBoxPreference
211                    android:defaultValue="@bool/allow_message_correction"
212                    android:key="allow_message_correction"
213                    android:title="@string/pref_allow_message_correction"
214                    android:summary="@string/pref_allow_message_correction_summary"/>
215                <Preference
216                    android:key="clean_cache"
217                    android:summary="@string/pref_clean_cache_summary"
218                    android:title="@string/pref_clean_cache"/>
219                <Preference
220                    android:key="clean_private_storage"
221                    android:summary="@string/pref_clean_private_storage_summary"
222                    android:title="@string/pref_clean_private_storage"/>
223                <Preference
224                    android:key="delete_omemo_identities"
225                    android:title="@string/pref_delete_omemo_identities"
226                    android:summary="@string/pref_delete_omemo_identities_summary"/>
227            </PreferenceCategory>
228            <PreferenceCategory
229                android:key="connection_options"
230                android:title="@string/pref_connection_options">
231                <CheckBoxPreference
232                    android:defaultValue="@bool/use_tor"
233                    android:key="use_tor"
234                    android:summary="@string/pref_use_tor_summary"
235                    android:title="@string/pref_use_tor"/>
236                <CheckBoxPreference
237                    android:defaultValue="@bool/show_connection_options"
238                    android:key="show_connection_options"
239                    android:summary="@string/pref_show_connection_options_summary"
240                    android:title="@string/pref_show_connection_options"/>
241            </PreferenceCategory>
242            <PreferenceCategory android:title="@string/pref_input_options">
243                <CheckBoxPreference
244                    android:defaultValue="@bool/enter_is_send"
245                    android:key="enter_is_send"
246                    android:summary="@string/pref_enter_is_send_summary"
247                    android:title="@string/pref_enter_is_send"/>
248                <CheckBoxPreference
249                    android:defaultValue="@bool/display_enter_key"
250                    android:key="display_enter_key"
251                    android:summary="@string/pref_display_enter_key_summary"
252                    android:title="@string/pref_display_enter_key"/>
253                <CheckBoxPreference
254                    android:defaultValue="@bool/scroll_to_bottom"
255                    android:key="scroll_to_bottom"
256                    android:title="@string/pref_scroll_to_bottom"
257                    android:summary="@string/pref_scroll_to_bottom_summary"/>
258            </PreferenceCategory>
259            <PreferenceCategory android:title="@string/pref_presence_settings">
260                <CheckBoxPreference
261                    android:defaultValue="@bool/manually_change_presence"
262                    android:key="manually_change_presence"
263                    android:title="@string/pref_manually_change_presence"
264                    android:summary="@string/pref_manually_change_presence_summary"
265                    android:disableDependentsState="true"/>
266                <CheckBoxPreference
267                    android:defaultValue="@bool/away_when_screen_off"
268                    android:key="away_when_screen_off"
269                    android:summary="@string/pref_away_when_screen_off_summary"
270                    android:title="@string/pref_away_when_screen_off"
271                    android:dependency="manually_change_presence"/>
272                <CheckBoxPreference
273                    android:defaultValue="@bool/dnd_on_silent_mode"
274                    android:key="dnd_on_silent_mode"
275                    android:summary="@string/pref_dnd_on_silent_mode_summary"
276                    android:title="@string/pref_dnd_on_silent_mode"
277                    android:dependency="manually_change_presence"/>
278                <CheckBoxPreference
279                    android:dependency="dnd_on_silent_mode"
280                    android:defaultValue="@bool/treat_vibrate_as_silent"
281                    android:key="treat_vibrate_as_silent"
282                    android:title="@string/pref_treat_vibrate_as_silent"
283                    android:summary="@string/pref_treat_vibrate_as_dnd_summary"/>
284            </PreferenceCategory>
285            <PreferenceCategory android:title="@string/pref_expert_options_other">
286                <CheckBoxPreference
287                    android:key="autojoin"
288                    android:defaultValue="@bool/autojoin"
289                    android:title="@string/pref_autojoin"
290                    android:summary="@string/pref_autojoin_summary"
291                    />
292                <CheckBoxPreference
293                    android:defaultValue="@bool/indicate_received"
294                    android:key="indicate_received"
295                    android:summary="@string/pref_use_indicate_received_summary"
296                    android:title="@string/pref_use_indicate_received"/>
297                <CheckBoxPreference
298                    android:defaultValue="@bool/enable_foreground_service"
299                    android:key="enable_foreground_service"
300                    android:summary="@string/pref_keep_foreground_service_summary"
301                    android:title="@string/pref_keep_foreground_service"/>
302                <Preference
303                    android:key="export_logs"
304                    android:summary="@string/pref_export_logs_summary"
305                    android:title="@string/pref_export_logs"/>
306            </PreferenceCategory>
307        </PreferenceScreen>
308
309        <CheckBoxPreference
310            android:defaultValue="@bool/never_send"
311            android:key="never_send"
312            android:summary="@string/pref_never_send_crash_summary"
313            android:title="@string/pref_never_send_crash"/>
314    </PreferenceCategory>
315    <eu.siacs.conversations.ui.AboutPreference
316        android:summary="@string/pref_about_conversations_summary"
317        android:title="@string/title_activity_about"/>
318</PreferenceScreen>