]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/xml/preferences.xml
Add a requests activity. https://redmine.stoutner.com/issues/170
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2018 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
22     <PreferenceCategory
23         android:key="privacy"
24         android:title="@string/privacy" >
25
26         <SwitchPreference
27             android:key="javascript_enabled"
28             android:title="@string/javascript_preference"
29             android:summary="@string/javascript_preference_summary"
30             android:defaultValue="false" />
31
32         <SwitchPreference
33             android:key="first_party_cookies_enabled"
34             android:title="@string/first_party_cookies_preference"
35             android:summary="@string/first_party_cookies_preference_summary"
36             android:defaultValue="false" />
37
38         <SwitchPreference
39             android:key="third_party_cookies_enabled"
40             android:title="@string/third_party_cookies_preference"
41             android:summary="@string/third_party_cookies_summary"
42             android:defaultValue="false" />
43
44         <SwitchPreference
45             android:key="dom_storage_enabled"
46             android:title="@string/dom_storage_preference"
47             android:summary="@string/dom_storage_preference_summary"
48             android:defaultValue="false" />
49
50         <!-- Save form data can be removed once the minimum API >= 26. -->
51         <SwitchPreference
52             android:key="save_form_data_enabled"
53             android:title="@string/save_form_data_preference"
54             android:summary="@string/save_form_data_preference_summary"
55             android:defaultValue="false" />
56
57         <ListPreference
58             android:key="user_agent"
59             android:title="@string/user_agent"
60             android:entries="@array/translated_user_agent_names"
61             android:entryValues="@array/user_agent_names"
62             android:defaultValue="Privacy Browser"
63             android:icon="?attr/userAgentIcon" />
64
65         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
66         <EditTextPreference
67             android:key="custom_user_agent"
68             android:title="@string/custom_user_agent"
69             android:defaultValue="PrivacyBrowser/1.0"
70             android:inputType="textVisiblePassword|textMultiLine" />
71
72         <SwitchPreference
73             android:key="incognito_mode"
74             android:title="@string/incognito_mode"
75             android:summary="@string/incognito_mode_summary"
76             android:defaultValue="false" />
77
78         <SwitchPreference
79             android:key="do_not_track"
80             android:title="@string/do_not_track"
81             android:summary="@string/do_not_track_summary"
82             android:defaultValue="false" />
83
84         <SwitchPreference
85             android:key="allow_screenshots"
86             android:title="@string/allow_screenshots"
87             android:summary="@string/allow_screenshots_summary"
88             android:defaultValue="false" />
89     </PreferenceCategory>
90
91     <PreferenceCategory
92         android:key="blocklists"
93         android:title="@string/blocklists" >
94
95         <SwitchPreference
96             android:key="easylist"
97             android:title="@string/easylist"
98             android:summary="@string/easylist_summary"
99             android:defaultValue="true" />
100
101         <SwitchPreference
102             android:key="easyprivacy"
103             android:title="@string/easyprivacy"
104             android:summary="@string/easyprivacy_summary"
105             android:defaultValue="true" />
106
107         <SwitchPreference
108             android:key="fanboy_annoyance_list"
109             android:title="@string/fanboy_annoyance_list"
110             android:summary="@string/fanboy_annoyance_list_summary"
111             android:defaultValue="true" />
112
113         <SwitchPreference
114             android:key="fanboy_social_blocking_list"
115             android:title="@string/fanboy_social_blocking_list"
116             android:summary="@string/fanboy_social_blocking_list_summary"
117             android:defaultValue="true" />
118     </PreferenceCategory>
119
120     <PreferenceCategory
121         android:key="tor"
122         android:title="@string/tor" >
123
124         <SwitchPreference
125             android:key="proxy_through_orbot"
126             android:title="@string/proxy_through_orbot"
127             android:summary="@string/proxy_through_orbot_summary"
128             android:defaultValue="false" />
129
130         <EditTextPreference
131             android:key="tor_homepage"
132             android:title="@string/tor_homepage"
133             android:defaultValue="https://3g2upl4pq6kufc4m.onion/"
134             android:inputType="textUri" />
135
136         <ListPreference
137             android:key="tor_search"
138             android:title="@string/tor_search"
139             android:entries="@array/tor_search_entries"
140             android:entryValues="@array/tor_search_entry_values"
141             android:defaultValue="https://3g2upl4pq6kufc4m.onion/html/?q=" />
142
143         <!--suppress AndroidDomInspection -->
144         <!--`suppress AndroidDomInspection` removes the error about the default value being blank. -->
145         <EditTextPreference
146             android:key="tor_search_custom_url"
147             android:title="@string/tor_search_custom_url"
148             android:defaultValue=""
149             android:inputType="textUri" />
150     </PreferenceCategory>
151
152     <PreferenceCategory
153         android:key="search_category"
154         android:title="@string/search" >
155
156         <ListPreference
157             android:key="search"
158             android:title="@string/search"
159             android:entries="@array/search_entries"
160             android:entryValues="@array/search_entry_values"
161             android:defaultValue="https://duckduckgo.com/html/?q="
162             android:icon="?attr/searchIcon" />
163
164         <!--suppress AndroidDomInspection -->
165         <!--`suppress AndroidDomInspection` removes the error about the default value being blank. -->
166         <EditTextPreference
167             android:key="search_custom_url"
168             android:title="@string/search_custom_url"
169             android:defaultValue=""
170             android:inputType="textUri" />
171     </PreferenceCategory>
172
173     <PreferenceCategory
174         android:key="full_screen"
175         android:title="@string/full_screen" >
176
177         <SwitchPreference
178             android:key="full_screen_browsing_mode"
179             android:title="@string/full_screen_browsing_mode"
180             android:summary="@string/full_screen_browsing_mode_summary"
181             android:defaultValue="false" />
182
183         <SwitchPreference
184             android:key="hide_system_bars"
185             android:title="@string/hide_system_bars"
186             android:summary="@string/hide_system_bars_summary"
187             android:defaultValue="false" />
188
189         <SwitchPreference
190             android:key="translucent_navigation_bar"
191             android:title="@string/translucent_navigation_bar"
192             android:summary="@string/translucent_navigation_bar_summary"
193             android:defaultValue="true" />
194     </PreferenceCategory>
195
196     <PreferenceCategory
197         android:key="clear_and_exit"
198         android:title="@string/clear_and_exit" >
199
200         <SwitchPreference
201             android:key="clear_everything"
202             android:title="@string/clear_everything"
203             android:summary="@string/clear_everything_summary"
204             android:defaultValue="true" />
205
206         <SwitchPreference
207             android:key="clear_cookies"
208             android:title="@string/clear_cookies_preference"
209             android:summary="@string/clear_cookies_summary"
210             android:defaultValue="true" />
211
212         <SwitchPreference
213             android:key="clear_dom_storage"
214             android:title="@string/clear_dom_storage_preference"
215             android:summary="@string/clear_dom_storage_summary"
216             android:defaultValue="true" />
217
218         <SwitchPreference
219             android:key="clear_form_data"
220             android:title="@string/clear_form_data_preference"
221             android:summary="@string/clear_form_data_summary"
222             android:defaultValue="true" />
223
224         <SwitchPreference
225             android:key="clear_cache"
226             android:title="@string/clear_cache"
227             android:summary="@string/clear_cache_summary"
228             android:defaultValue="true" />
229     </PreferenceCategory>
230
231     <PreferenceCategory
232         android:key="general"
233         android:title="@string/general" >
234
235         <EditTextPreference
236             android:key="homepage"
237             android:title="@string/homepage"
238             android:defaultValue="https://duckduckgo.com/?kao=-1&amp;kak=-1"
239             android:inputType="textUri"
240             android:icon="?attr/homepageIcon" />
241
242         <ListPreference
243             android:key="default_font_size"
244             android:title="@string/default_font_size"
245             android:entries="@array/default_font_size_entries"
246             android:entryValues="@array/default_font_size_entry_values"
247             android:defaultValue="100"
248             android:icon="?attr/fontSizeIcon" />
249
250         <SwitchPreference
251             android:key="swipe_to_refresh"
252             android:title="@string/swipe_to_refresh_preference"
253             android:summary="@string/swipe_to_refresh_summary"
254             android:defaultValue="true" />
255
256         <SwitchPreference
257             android:key="display_additional_app_bar_icons"
258             android:title="@string/display_additional_app_bar_icons"
259             android:summary="@string/display_additional_app_bar_icons_summary"
260             android:defaultValue="false" />
261
262         <SwitchPreference
263             android:key="dark_theme"
264             android:title="@string/dark_theme"
265             android:summary="@string/dark_theme_summary"
266             android:defaultValue="false" />
267
268         <SwitchPreference
269             android:key="night_mode"
270             android:title="@string/night_mode"
271             android:summary="@string/night_mode_summary"
272             android:defaultValue="false" />
273
274         <SwitchPreference
275             android:key="display_webpage_images"
276             android:title="@string/display_webpage_images"
277             android:summary="@string/display_webpage_images_summary"
278             android:defaultValue="true" />
279     </PreferenceCategory>
280 </PreferenceScreen>