|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 |
|
3 | 3 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> |
4 | | - <CheckBoxPreference android:defaultValue="true" |
5 | | - android:key="pref_all_sms" |
6 | | - android:summary="@string/preferences__use_textsecure_for_viewing_and_storing_all_incoming_text_messages" |
7 | | - android:title="@string/preferences__pref_all_sms_title" /> |
8 | | - |
9 | | - <CheckBoxPreference android:defaultValue="true" |
10 | | - android:key="pref_all_mms" |
11 | | - android:summary="@string/preferences__use_textsecure_for_viewing_and_storing_all_incoming_multimedia_messages" |
12 | | - android:title="@string/preferences__pref_all_mms_title" /> |
13 | | - |
14 | | - <CheckBoxPreference android:defaultValue="false" |
15 | | - android:key="pref_delivery_report_sms" |
16 | | - android:summary="@string/preferences__request_a_delivery_report_for_each_sms_message_you_send" |
17 | | - android:title="@string/preferences__sms_delivery_reports" /> |
18 | | - |
19 | | - <CheckBoxPreference android:defaultValue="false" |
20 | | - android:key="pref_enter_sends" |
21 | | - android:summary="@string/preferences__pressing_the_enter_key_will_send_text_messages" |
22 | | - android:title="@string/preferences__pref_enter_sends_title" /> |
23 | | - |
24 | | - <PreferenceScreen android:title="@string/preferences__notifications"> |
25 | | - <CheckBoxPreference android:key="pref_key_enable_notifications" |
26 | | - android:title="@string/preferences__notifications" |
27 | | - android:summary="@string/preferences__display_message_notifications_in_status_bar" |
28 | | - android:defaultValue="true" /> |
29 | | - <ListPreference |
30 | | - android:key="pref_led_color" |
31 | | - android:defaultValue="green" |
32 | | - android:title="@string/preferences__led_color" |
33 | | - android:dependency="pref_key_enable_notifications" |
34 | | - android:summary="@string/preferences__change_notification_led_color" |
35 | | - android:entries="@array/pref_led_color_entries" |
36 | | - android:entryValues="@array/pref_led_color_values" |
37 | | - android:dialogTitle="@string/preferences__select_led_color" /> |
38 | | - |
39 | | - <org.thoughtcrime.securesms.preferences.LedBlinkPatternListPreference |
40 | | - android:key="pref_led_blink" |
41 | | - android:defaultValue="500,2000" |
42 | | - android:title="@string/preferences__pref_led_blink_title" |
43 | | - android:dependency="pref_key_enable_notifications" |
44 | | - android:summary="@string/preferences__change_notification_blink_pattern" |
45 | | - android:entries="@array/pref_led_blink_pattern_entries" |
46 | | - android:entryValues="@array/pref_led_blink_pattern_values" |
47 | | - android:dialogTitle="@string/preferences__pref_led_blink_dialogtitle" /> |
48 | | - |
49 | | - |
50 | | - <RingtonePreference android:layout="?android:attr/preferenceLayoutChild" |
51 | | - android:dependency="pref_key_enable_notifications" |
52 | | - android:key="pref_key_ringtone" |
53 | | - android:title="@string/preferences__select_ringtone" |
54 | | - android:ringtoneType="notification" |
55 | | - android:defaultValue="content://settings/system/notification_sound" /> |
56 | | - <CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild" |
57 | | - android:dependency="pref_key_enable_notifications" |
58 | | - android:key="pref_key_vibrate" |
59 | | - android:defaultValue="true" |
60 | | - android:title="@string/preferences__vibrate" |
61 | | - android:summary="@string/preferences__also_vibrate_when_notified" /> |
62 | | - </PreferenceScreen> |
| 4 | + <PreferenceCategory android:title="@string/preferences__general"> |
| 5 | + <CheckBoxPreference android:defaultValue="true" |
| 6 | + android:key="pref_all_sms" |
| 7 | + android:summary="@string/preferences__use_textsecure_for_viewing_and_storing_all_incoming_text_messages" |
| 8 | + android:title="@string/preferences__pref_all_sms_title" /> |
| 9 | + |
| 10 | + <CheckBoxPreference android:defaultValue="true" |
| 11 | + android:key="pref_all_mms" |
| 12 | + android:summary="@string/preferences__use_textsecure_for_viewing_and_storing_all_incoming_multimedia_messages" |
| 13 | + android:title="@string/preferences__pref_all_mms_title" /> |
| 14 | + |
| 15 | + <CheckBoxPreference android:defaultValue="false" |
| 16 | + android:key="pref_delivery_report_sms" |
| 17 | + android:summary="@string/preferences__request_a_delivery_report_for_each_sms_message_you_send" |
| 18 | + android:title="@string/preferences__sms_delivery_reports" /> |
| 19 | + |
| 20 | + <CheckBoxPreference android:defaultValue="false" |
| 21 | + android:key="pref_enter_sends" |
| 22 | + android:summary="@string/preferences__pressing_the_enter_key_will_send_text_messages" |
| 23 | + android:title="@string/preferences__pref_enter_sends_title" /> |
| 24 | + </PreferenceCategory> |
| 25 | + <PreferenceCategory android:title="@string/preferences__notifications"> |
| 26 | + <CheckBoxPreference android:key="pref_key_enable_notifications" |
| 27 | + android:title="@string/preferences__notifications" |
| 28 | + android:summary="@string/preferences__display_message_notifications_in_status_bar" |
| 29 | + android:defaultValue="true" /> |
| 30 | + <ListPreference |
| 31 | + android:key="pref_led_color" |
| 32 | + android:defaultValue="green" |
| 33 | + android:title="@string/preferences__led_color" |
| 34 | + android:dependency="pref_key_enable_notifications" |
| 35 | + android:summary="@string/preferences__change_notification_led_color" |
| 36 | + android:entries="@array/pref_led_color_entries" |
| 37 | + android:entryValues="@array/pref_led_color_values" |
| 38 | + android:dialogTitle="@string/preferences__select_led_color" /> |
| 39 | + |
| 40 | + <org.thoughtcrime.securesms.preferences.LedBlinkPatternListPreference |
| 41 | + android:key="pref_led_blink" |
| 42 | + android:defaultValue="500,2000" |
| 43 | + android:title="@string/preferences__pref_led_blink_title" |
| 44 | + android:dependency="pref_key_enable_notifications" |
| 45 | + android:summary="@string/preferences__change_notification_blink_pattern" |
| 46 | + android:entries="@array/pref_led_blink_pattern_entries" |
| 47 | + android:entryValues="@array/pref_led_blink_pattern_values" |
| 48 | + android:dialogTitle="@string/preferences__pref_led_blink_dialogtitle" /> |
| 49 | + |
| 50 | + |
| 51 | + <RingtonePreference android:layout="?android:attr/preferenceLayoutChild" |
| 52 | + android:dependency="pref_key_enable_notifications" |
| 53 | + android:key="pref_key_ringtone" |
| 54 | + android:title="@string/preferences__select_ringtone" |
| 55 | + android:ringtoneType="notification" |
| 56 | + android:defaultValue="content://settings/system/notification_sound" /> |
| 57 | + <CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild" |
| 58 | + android:dependency="pref_key_enable_notifications" |
| 59 | + android:key="pref_key_vibrate" |
| 60 | + android:defaultValue="true" |
| 61 | + android:title="@string/preferences__vibrate" |
| 62 | + android:summary="@string/preferences__also_vibrate_when_notified" /> |
| 63 | + </PreferenceCategory> |
63 | 64 |
|
64 | 65 | <PreferenceCategory android:title="@string/preferences__storage"> |
65 | 66 | <CheckBoxPreference android:defaultValue="false" |
|
117 | 118 | android:title="@string/preferences__complete_key_exchanges" |
118 | 119 | android:summary="@string/preferences__automatically_complete_key_exchanges_for_new_sessions_or_for_existing_sessions_with_the_same_identity_key" /> |
119 | 120 |
|
120 | | - <PreferenceScreen android:title="@string/preferences__identity_key_settings"> |
121 | | - <Preference android:key="pref_view_identity" |
122 | | - android:title="@string/preferences__view_my_identity_key" |
123 | | - android:summary="@string/preferences__view_my_identity_key"/> |
124 | | - |
125 | | - <Preference android:key="pref_export_identity" |
126 | | - android:title="@string/preferences__export_my_identity_key" |
127 | | - android:summary="@string/preferences__export_my_identity_key"/> |
128 | | - |
129 | | - <Preference android:key="pref_import_identity" |
130 | | - android:title="@string/preferences__import_contacts_key" |
131 | | - android:summary="@string/preferences__import_an_identity_key_from_a_contact"/> |
132 | | - |
133 | | - <Preference android:key="pref_manage_identity" |
134 | | - android:title="@string/preferences__manage_identity_keys" |
135 | | - android:summary="@string/preferences__manage_configured_identity_keys"/> |
136 | | - </PreferenceScreen> |
137 | | - |
138 | | - <PreferenceScreen android:title="@string/preferences__advanced_mms_access_point_names"> |
139 | | - <CheckBoxPreference android:key="pref_use_local_apns" |
140 | | - android:defaultValue="false" |
141 | | - android:title="@string/preferences__enable_fallback_mmsc" |
142 | | - android:summary="@string/preferences__use_mmsc_information_configured_here_when_system_apn_information_is_unavailable"/> |
143 | | - |
144 | | - <EditTextPreference android:key="pref_apn_mmsc_host" |
145 | | - android:title="@string/preferences__mmsc_url_required" |
146 | | - android:dependency="pref_use_local_apns" /> |
147 | | - |
148 | | - <EditTextPreference android:key="pref_apn_mms_proxy" |
149 | | - android:title="@string/preferences__mms_proxy_host_optional" |
150 | | - android:dependency="pref_use_local_apns" /> |
151 | | - |
152 | | - <EditTextPreference android:key="pref_apn_mms_proxy_port" |
153 | | - android:title="@string/preferences__mms_proxy_port_optional" |
154 | | - android:dependency="pref_use_local_apns" |
155 | | - android:inputType="number" /> |
156 | | - </PreferenceScreen> |
157 | | - </PreferenceCategory> |
| 121 | + <PreferenceScreen android:title="@string/preferences__identity_key_settings"> |
| 122 | + <Preference android:key="pref_view_identity" |
| 123 | + android:title="@string/preferences__view_my_identity_key" |
| 124 | + android:summary="@string/preferences__view_my_identity_key"/> |
| 125 | + |
| 126 | + <Preference android:key="pref_export_identity" |
| 127 | + android:title="@string/preferences__export_my_identity_key" |
| 128 | + android:summary="@string/preferences__export_my_identity_key"/> |
| 129 | + |
| 130 | + <Preference android:key="pref_import_identity" |
| 131 | + android:title="@string/preferences__import_contacts_key" |
| 132 | + android:summary="@string/preferences__import_an_identity_key_from_a_contact"/> |
| 133 | + |
| 134 | + <Preference android:key="pref_manage_identity" |
| 135 | + android:title="@string/preferences__manage_identity_keys" |
| 136 | + android:summary="@string/preferences__manage_configured_identity_keys"/> |
| 137 | + </PreferenceScreen> |
| 138 | + |
| 139 | + <PreferenceScreen android:title="@string/preferences__advanced_mms_access_point_names"> |
| 140 | + <CheckBoxPreference android:key="pref_use_local_apns" |
| 141 | + android:defaultValue="false" |
| 142 | + android:title="@string/preferences__enable_fallback_mmsc" |
| 143 | + android:summary="@string/preferences__use_mmsc_information_configured_here_when_system_apn_information_is_unavailable"/> |
| 144 | + |
| 145 | + <EditTextPreference android:key="pref_apn_mmsc_host" |
| 146 | + android:title="@string/preferences__mmsc_url_required" |
| 147 | + android:dependency="pref_use_local_apns" /> |
| 148 | + |
| 149 | + <EditTextPreference android:key="pref_apn_mms_proxy" |
| 150 | + android:title="@string/preferences__mms_proxy_host_optional" |
| 151 | + android:dependency="pref_use_local_apns" /> |
| 152 | + |
| 153 | + <EditTextPreference android:key="pref_apn_mms_proxy_port" |
| 154 | + android:title="@string/preferences__mms_proxy_port_optional" |
| 155 | + android:dependency="pref_use_local_apns" |
| 156 | + android:inputType="number" /> |
| 157 | + </PreferenceScreen> |
| 158 | + </PreferenceCategory> |
158 | 159 | </PreferenceScreen> |
0 commit comments