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/use_larger_font"
154            android:key="use_larger_font"
155            android:summary="@string/pref_use_larger_font_summary"
156            android:title="@string/pref_use_larger_font"/>
157        <CheckBoxPreference
158            android:defaultValue="@bool/send_button_status"
159            android:key="send_button_status"
160            android:summary="@string/pref_use_send_button_to_indicate_status_summary"
161            android:title="@string/pref_use_send_button_to_indicate_status"/>
162        <ListPreference
163            android:defaultValue="@string/quick_action"
164            android:dialogTitle="@string/choose_quick_action"
165            android:entries="@array/quick_actions"
166            android:entryValues="@array/quick_action_values"
167            android:key="quick_action"
168            android:summary="@string/pref_quick_action_summary"
169            android:title="@string/pref_quick_action"/>
170        <CheckBoxPreference
171            android:defaultValue="@bool/show_dynamic_tags"
172            android:key="show_dynamic_tags"
173            android:summary="@string/pref_show_dynamic_tags_summary"
174            android:title="@string/pref_show_dynamic_tags"/>
175    </PreferenceCategory>
176    <PreferenceCategory
177        android:key="advanced"
178        android:title="@string/pref_advanced_options">
179        <PreferenceScreen
180            android:key="expert"
181            android:summary="@string/pref_expert_options_summary"
182            android:title="@string/pref_expert_options">
183            <intent
184                android:action="android.intent.action.VIEW"
185                android:targetPackage="@string/applicationId"
186                android:targetClass="eu.siacs.conversations.ui.SettingsActivity" >
187                <extra android:name="page" android:value="expert" />
188            </intent>
189            <PreferenceCategory android:title="@string/pref_security_settings"
190                android:key="security_options">
191                <CheckBoxPreference
192                    android:defaultValue="@bool/btbv"
193                    android:key="btbv"
194                    android:title="@string/pref_blind_trust_before_verification"
195                    android:summary="@string/pref_blind_trust_before_verification_summary"/>
196                <ListPreference
197                    android:key="automatic_message_deletion"
198                    android:title="@string/pref_automatically_delete_messages"
199                    android:summary="@string/pref_automatically_delete_messages_description"
200                    android:defaultValue="@integer/automatic_message_deletion"
201                    android:entries="@array/automatic_message_deletion"
202                    android:entryValues="@array/automatic_message_deletion_values" />
203                <CheckBoxPreference
204                    android:defaultValue="@bool/dont_trust_system_cas"
205                    android:key="dont_trust_system_cas"
206                    android:summary="@string/pref_dont_trust_system_cas_summary"
207                    android:title="@string/pref_dont_trust_system_cas_title"/>
208                <CheckBoxPreference
209                    android:defaultValue="@bool/validate_hostname"
210                    android:key="validate_hostname"
211                    android:summary="@string/pref_validate_hostname_summary"
212                    android:title="@string/pref_validate_hostname"/>
213                <Preference
214                    android:key="remove_trusted_certificates"
215                    android:summary="@string/pref_remove_trusted_certificates_summary"
216                    android:title="@string/pref_remove_trusted_certificates_title"/>
217                <CheckBoxPreference
218                    android:defaultValue="@bool/allow_message_correction"
219                    android:key="allow_message_correction"
220                    android:title="@string/pref_allow_message_correction"
221                    android:summary="@string/pref_allow_message_correction_summary"/>
222                <Preference
223                    android:key="clean_cache"
224                    android:summary="@string/pref_clean_cache_summary"
225                    android:title="@string/pref_clean_cache"/>
226                <Preference
227                    android:key="clean_private_storage"
228                    android:summary="@string/pref_clean_private_storage_summary"
229                    android:title="@string/pref_clean_private_storage"/>
230                <Preference
231                    android:key="delete_omemo_identities"
232                    android:title="@string/pref_delete_omemo_identities"
233                    android:summary="@string/pref_delete_omemo_identities_summary"/>
234            </PreferenceCategory>
235            <PreferenceCategory
236                android:key="connection_options"
237                android:title="@string/pref_connection_options">
238                <CheckBoxPreference
239                    android:defaultValue="@bool/use_tor"
240                    android:key="use_tor"
241                    android:summary="@string/pref_use_tor_summary"
242                    android:title="@string/pref_use_tor"/>
243                <CheckBoxPreference
244                    android:defaultValue="@bool/show_connection_options"
245                    android:key="show_connection_options"
246                    android:summary="@string/pref_show_connection_options_summary"
247                    android:title="@string/pref_show_connection_options"/>
248            </PreferenceCategory>
249            <PreferenceCategory android:title="@string/pref_input_options">
250                <CheckBoxPreference
251                    android:defaultValue="@bool/enter_is_send"
252                    android:key="enter_is_send"
253                    android:summary="@string/pref_enter_is_send_summary"
254                    android:title="@string/pref_enter_is_send"/>
255                <CheckBoxPreference
256                    android:defaultValue="@bool/display_enter_key"
257                    android:key="display_enter_key"
258                    android:summary="@string/pref_display_enter_key_summary"
259                    android:title="@string/pref_display_enter_key"/>
260                <CheckBoxPreference
261                    android:defaultValue="@bool/scroll_to_bottom"
262                    android:key="scroll_to_bottom"
263                    android:title="@string/pref_scroll_to_bottom"
264                    android:summary="@string/pref_scroll_to_bottom_summary"/>
265            </PreferenceCategory>
266            <PreferenceCategory android:title="@string/pref_presence_settings">
267                <CheckBoxPreference
268                    android:defaultValue="@bool/manually_change_presence"
269                    android:key="manually_change_presence"
270                    android:title="@string/pref_manually_change_presence"
271                    android:summary="@string/pref_manually_change_presence_summary"
272                    android:disableDependentsState="true"/>
273                <CheckBoxPreference
274                    android:defaultValue="@bool/away_when_screen_off"
275                    android:key="away_when_screen_off"
276                    android:summary="@string/pref_away_when_screen_off_summary"
277                    android:title="@string/pref_away_when_screen_off"
278                    android:dependency="manually_change_presence"/>
279                <CheckBoxPreference
280                    android:defaultValue="@bool/dnd_on_silent_mode"
281                    android:key="dnd_on_silent_mode"
282                    android:summary="@string/pref_dnd_on_silent_mode_summary"
283                    android:title="@string/pref_dnd_on_silent_mode"
284                    android:dependency="manually_change_presence"/>
285                <CheckBoxPreference
286                    android:dependency="dnd_on_silent_mode"
287                    android:defaultValue="@bool/treat_vibrate_as_silent"
288                    android:key="treat_vibrate_as_silent"
289                    android:title="@string/pref_treat_vibrate_as_silent"
290                    android:summary="@string/pref_treat_vibrate_as_dnd_summary"/>
291            </PreferenceCategory>
292            <PreferenceCategory android:title="@string/pref_expert_options_other">
293                <CheckBoxPreference
294                    android:key="autojoin"
295                    android:defaultValue="@bool/autojoin"
296                    android:title="@string/pref_autojoin"
297                    android:summary="@string/pref_autojoin_summary"
298                    />
299                <CheckBoxPreference
300                    android:defaultValue="@bool/indicate_received"
301                    android:key="indicate_received"
302                    android:summary="@string/pref_use_indicate_received_summary"
303                    android:title="@string/pref_use_indicate_received"/>
304                <CheckBoxPreference
305                    android:defaultValue="@bool/enable_foreground_service"
306                    android:key="enable_foreground_service"
307                    android:summary="@string/pref_keep_foreground_service_summary"
308                    android:title="@string/pref_keep_foreground_service"/>
309                <Preference
310                    android:key="export_logs"
311                    android:summary="@string/pref_export_logs_summary"
312                    android:title="@string/pref_export_logs"/>
313            </PreferenceCategory>
314        </PreferenceScreen>
315
316        <CheckBoxPreference
317            android:defaultValue="@bool/never_send"
318            android:key="never_send"
319            android:summary="@string/pref_never_send_crash_summary"
320            android:title="@string/pref_never_send_crash"/>
321    </PreferenceCategory>
322    <eu.siacs.conversations.ui.AboutPreference
323        android:summary="@string/pref_about_conversations_summary"
324        android:title="@string/title_activity_about"/>
325</PreferenceScreen>