settings.xml 6.1 KB
Newer Older
1
2
3
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
	xmlns:android="http://schemas.android.com/apk/res/android">
Julian Dehm's avatar
Julian Dehm committed
4
5
6
7
	<PreferenceCategory
		android:layout="@layout/preferences_category"
		android:title="@string/display_settings_title">

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
		<ListPreference
			android:defaultValue="default"
			android:entryValues="@array/pref_language_values"
			android:key="pref_key_language"
			android:summary="%s"
			android:title="@string/pref_language_title"/>

		<ListPreference
			android:defaultValue="@string/pref_theme_light_value"
			android:entries="@array/pref_theme_entries"
			android:entryValues="@array/pref_theme_values"
			android:key="pref_key_theme"
			android:summary="%s"
			android:title="@string/pref_theme_title"/>
		
Julian Dehm's avatar
Julian Dehm committed
23
	</PreferenceCategory>
24
25

	<PreferenceCategory
26
		android:layout="@layout/preferences_category"
27
28
29
30
31
32
33
34
35
36
37
38
		android:title="@string/network_settings_title">

		<ListPreference
			android:defaultValue="false"
			android:entries="@array/bt_setting_names"
			android:entryValues="@array/boolean_array"
			android:key="pref_key_bluetooth"
			android:persistent="false"
			android:summary="%s"
			android:title="@string/bluetooth_setting"/>

		<ListPreference
39
			android:defaultValue="0"
akwizgran's avatar
akwizgran committed
40
41
42
			android:entries="@array/tor_network_setting_names"
			android:entryValues="@array/tor_network_setting_values"
			android:key="pref_key_tor_network"
43
44
			android:persistent="false"
			android:summary="%s"
akwizgran's avatar
akwizgran committed
45
			android:title="@string/tor_network_setting"/>
46

47
		<SwitchPreference
48
			android:defaultValue="true"
49
			android:key="pref_key_tor_mobile_data"
50
			android:persistent="false"
51
52
			android:title="@string/tor_mobile_data_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
53

54
55
	</PreferenceCategory>

str4d's avatar
str4d committed
56
	<PreferenceCategory
57
		android:layout="@layout/preferences_category"
str4d's avatar
str4d committed
58
59
		android:title="@string/security_settings_title">

akwizgran's avatar
akwizgran committed
60
		<SwitchPreference
61
			android:enabled="false"
Torsten Grote's avatar
Torsten Grote committed
62
63
64
			android:key="pref_key_lock"
			android:persistent="false"
			android:summary="@string/pref_lock_summary"
65
66
			android:title="@string/pref_lock_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
67
68
69
70
71
72
73
74
75
76

		<ListPreference
			android:defaultValue="@string/pref_lock_timeout_value_default"
			android:dependency="pref_key_lock"
			android:entries="@array/pref_key_lock_timeout_entries"
			android:entryValues="@array/pref_key_lock_timeout_values"
			android:key="pref_key_lock_timeout"
			android:persistent="false"
			android:summary="@string/pref_lock_timeout_summary"
			android:title="@string/pref_lock_timeout_title"/>
Torsten Grote's avatar
Torsten Grote committed
77

str4d's avatar
str4d committed
78
79
80
81
82
		<Preference
			android:key="pref_key_change_password"
			android:title="@string/change_password">

			<intent
akwizgran's avatar
akwizgran committed
83
				android:targetClass="org.briarproject.briar.android.login.ChangePasswordActivity"
84
				android:targetPackage="@string/app_package"/>
str4d's avatar
str4d committed
85
86
87
88
		</Preference>

	</PreferenceCategory>

89
	<PreferenceCategory
90
		android:layout="@layout/preferences_category"
91
92
93
94
95
96
97
		android:title="@string/panic_setting_title">

		<Preference
			android:summary="@string/panic_setting_hint"
			android:title="@string/panic_setting">

			<intent
akwizgran's avatar
akwizgran committed
98
				android:targetClass="org.briarproject.briar.android.panic.PanicPreferencesActivity"
99
				android:targetPackage="@string/app_package"/>
100
101
102
103
104
105

		</Preference>

	</PreferenceCategory>

	<PreferenceCategory
106
		android:layout="@layout/preferences_category"
107
108
		android:title="@string/notification_settings_title">

109
		<SwitchPreference
110
111
112
			android:defaultValue="true"
			android:key="pref_key_notify_sign_in"
			android:summary="@string/notify_sign_in_summary"
113
114
			android:title="@string/notify_sign_in_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
115

116
		<SwitchPreference
117
118
119
			android:defaultValue="true"
			android:key="pref_key_notify_private_messages"
			android:persistent="false"
120
			android:summary="@string/notify_private_messages_setting_summary"
121
122
			android:title="@string/notify_private_messages_setting_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
123

124
		<SwitchPreference
125
126
127
			android:defaultValue="true"
			android:key="pref_key_notify_group_messages"
			android:persistent="false"
128
			android:summary="@string/notify_group_messages_setting_summary"
129
130
			android:title="@string/notify_group_messages_setting_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
131

132
		<SwitchPreference
133
134
135
			android:defaultValue="true"
			android:key="pref_key_notify_forum_posts"
			android:persistent="false"
136
			android:summary="@string/notify_forum_posts_setting_summary"
137
138
			android:title="@string/notify_forum_posts_setting_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
139

140
		<SwitchPreference
141
142
143
			android:defaultValue="true"
			android:key="pref_key_notify_blog_posts"
			android:persistent="false"
144
			android:summary="@string/notify_blog_posts_setting_summary"
145
146
			android:title="@string/notify_blog_posts_setting_title"
			android:widgetLayout="@layout/preference_switch_compat"/>
147

148
		<SwitchPreference
goapunk's avatar
goapunk committed
149
150
151
152
			android:defaultValue="false"
			android:key="pref_key_notify_lock_screen"
			android:persistent="false"
			android:summary="@string/notify_lock_screen_setting_summary"
153
			android:title="@string/notify_lock_screen_setting_title"
154
155
			android:visibility="gone"
			android:widgetLayout="@layout/preference_switch_compat"/>
goapunk's avatar
goapunk committed
156

157
		<SwitchPreference
158
159
160
			android:defaultValue="true"
			android:key="pref_key_notify_vibration"
			android:persistent="false"
161
162
			android:title="@string/notify_vibration_setting"
			android:widgetLayout="@layout/preference_switch_compat"/>
163
164
165
166
167
168
169

		<Preference
			android:key="pref_key_notify_sound"
			android:title="@string/notify_sound_setting"/>

	</PreferenceCategory>

170
	<PreferenceCategory
171
		android:layout="@layout/preferences_category"
172
173
174
175
176
177
178
179
180
		android:title="@string/feedback_settings_title"/>

	<Preference
		android:key="pref_key_send_feedback"
		android:title="@string/send_feedback"/>

	<PreferenceCategory
		android:layout="@layout/preferences_category"
		android:title="Testing">
181
182

		<Preference
183
184
			android:key="pref_key_test_data"
			android:title="Create Test Data">
185

186
187
188
189
			<intent
				android:targetClass="org.briarproject.briar.android.test.TestDataActivity"
				android:targetPackage="@string/app_package"/>
		</Preference>
190

191
192
193
		<Preference
			android:key="pref_key_explode"
			android:title="Crash"/>
194

195
	</PreferenceCategory>
196
197

</PreferenceScreen>