preferences.xml

  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    </PreferenceCategory>
 32    <PreferenceCategory android:title="@string/pref_notification_settings" >
 33        <CheckBoxPreference
 34            android:defaultValue="true"
 35            android:key="show_notification"
 36            android:summary="@string/pref_notifications_summary"
 37            android:title="@string/pref_notifications" />
 38        <CheckBoxPreference
 39            android:defaultValue="true"
 40            android:dependency="show_notification"
 41            android:key="vibrate_on_notification"
 42            android:summary="@string/pref_vibrate_summary"
 43            android:title="@string/pref_vibrate" />
 44
 45        <RingtonePreference
 46            android:defaultValue="content://settings/system/notification_sound"
 47            android:dependency="show_notification"
 48            android:key="notification_ringtone"
 49            android:ringtoneType="notification"
 50            android:summary="@string/pref_sound_summary"
 51            android:title="@string/pref_sound" />
 52
 53        <CheckBoxPreference
 54            android:defaultValue="true"
 55            android:dependency="show_notification"
 56            android:key="always_notify_in_conference"
 57            android:summary="@string/pref_conference_notifications_summary"
 58            android:title="@string/pref_conference_notifications" />
 59    </PreferenceCategory>
 60    <PreferenceCategory android:title="@string/pref_ui_options" >
 61        <CheckBoxPreference
 62            android:defaultValue="true"
 63            android:key="use_subject"
 64            android:summary="@string/pref_conference_name_summary"
 65            android:title="@string/pref_conference_name" />
 66        <CheckBoxPreference
 67            android:defaultValue="false"
 68            android:key="use_larger_font"
 69            android:summary="@string/pref_use_larger_font_summary"
 70            android:title="@string/pref_use_larger_font" />
 71        <CheckBoxPreference
 72            android:defaultValue="false"
 73            android:key="send_button_status"
 74            android:summary="@string/pref_use_send_button_to_indicate_status_summary"
 75            android:title="@string/pref_use_send_button_to_indicate_status" />
 76        <CheckBoxPreference
 77            android:defaultValue="false"
 78            android:key="show_dynamic_tags"
 79            android:summary="@string/pref_show_dynamic_tags_summary"
 80            android:title="@string/pref_show_dynamic_tags" />
 81    </PreferenceCategory>
 82    <PreferenceCategory android:title="@string/pref_advanced_options" >
 83        <PreferenceScreen
 84            android:summary="@string/pref_expert_options_summary"
 85            android:title="@string/pref_expert_options" >
 86            <PreferenceCategory android:title="@string/pref_encryption_settings" >
 87                <CheckBoxPreference
 88                    android:defaultValue="false"
 89                    android:key="force_encryption"
 90                    android:summary="@string/pref_force_encryption_summary"
 91                    android:title="@string/pref_force_encryption" />
 92                <CheckBoxPreference
 93                    android:defaultValue="false"
 94                    android:key="dont_save_encrypted"
 95                    android:summary="@string/pref_dont_save_encrypted_summary"
 96                    android:title="@string/pref_dont_save_encrypted" />
 97                <CheckBoxPreference
 98                    android:defaultValue="false"
 99                    android:key="enable_legacy_ssl"
100                    android:summary="@string/pref_enable_legacy_ssl_summary"
101                    android:title="@string/pref_enable_legacy_ssl" />
102            </PreferenceCategory>
103            <PreferenceCategory android:title="@string/pref_expert_options_other" >
104                <CheckBoxPreference
105                    android:defaultValue="false"
106                    android:key="indicate_received"
107                    android:summary="@string/pref_use_indicate_received_summary"
108                    android:title="@string/pref_use_indicate_received" />
109                <CheckBoxPreference
110                    android:defaultValue="false"
111                    android:key="keep_foreground_service"
112                    android:title="@string/pref_keep_foreground_service"
113                    android:summary="@string/pref_keep_foreground_service_summary" />
114            </PreferenceCategory>
115        </PreferenceScreen>
116
117        <CheckBoxPreference
118            android:defaultValue="false"
119            android:key="never_send"
120            android:summary="@string/pref_never_send_crash_summary"
121            android:title="@string/pref_never_send_crash" />
122    </PreferenceCategory>
123		<eu.siacs.conversations.ui.AboutPreference
124			android:summary="@string/pref_about_conversations_summary"
125			android:title="@string/title_activity_about" />
126
127</PreferenceScreen>