Add swipe to refresh to domain and on-the-fly settings. https://redmine.stoutner...
[PrivacyBrowser.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         <SwitchPreference
51             android:key="save_form_data_enabled"
52             android:title="@string/save_form_data_preference"
53             android:summary="@string/save_form_data_preference_summary"
54             android:defaultValue="false" />
55
56         <ListPreference
57             android:key="user_agent"
58             android:title="@string/user_agent"
59             android:entries="@array/translated_user_agent_names"
60             android:entryValues="@array/user_agent_names"
61             android:defaultValue="Privacy Browser"
62             android:icon="?attr/userAgentIcon" />
63
64         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
65         <EditTextPreference
66             android:key="custom_user_agent"
67             android:title="@string/custom_user_agent"
68             android:defaultValue="PrivacyBrowser/1.0"
69             android:inputType="textVisiblePassword|textMultiLine" />
70
71         <SwitchPreference
72             android:key="incognito_mode"
73             android:title="@string/incognito_mode"
74             android:summary="@string/incognito_mode_summary"
75             android:defaultValue="false" />
76
77         <SwitchPreference
78             android:key="do_not_track"
79             android:title="@string/do_not_track"
80             android:summary="@string/do_not_track_summary"
81             android:defaultValue="false" />
82     </PreferenceCategory>
83
84     <PreferenceCategory
85         android:key="block_lists"
86         android:title="@string/block_lists" >
87
88         <SwitchPreference
89             android:key="easylist"
90             android:title="@string/easylist"
91             android:summary="@string/easylist_summary"
92             android:defaultValue="true" />
93
94         <SwitchPreference
95             android:key="easyprivacy"
96             android:title="@string/easyprivacy"
97             android:summary="@string/easyprivacy_summary"
98             android:defaultValue="true" />
99
100         <SwitchPreference
101             android:key="fanboy_annoyance_list"
102             android:title="@string/fanboy_annoyance_list"
103             android:summary="@string/fanboy_annoyance_list_summary"
104             android:defaultValue="true" />
105
106         <SwitchPreference
107             android:key="fanboy_social_blocking_list"
108             android:title="@string/fanboy_social_blocking_list"
109             android:summary="@string/fanboy_social_blocking_list_summary"
110             android:defaultValue="true" />
111     </PreferenceCategory>
112
113     <PreferenceCategory
114         android:key="tor"
115         android:title="@string/tor" >
116
117         <SwitchPreference
118             android:key="proxy_through_orbot"
119             android:title="@string/proxy_through_orbot"
120             android:summary="@string/proxy_through_orbot_summary"
121             android:defaultValue="false" />
122
123         <EditTextPreference
124             android:key="tor_homepage"
125             android:title="@string/tor_homepage"
126             android:defaultValue="https://3g2upl4pq6kufc4m.onion/"
127             android:inputType="textUri" />
128
129         <ListPreference
130             android:key="tor_search"
131             android:title="@string/tor_search"
132             android:entries="@array/tor_search_entries"
133             android:entryValues="@array/tor_search_entry_values"
134             android:defaultValue="https://3g2upl4pq6kufc4m.onion/html/?q=" />
135
136         <!--suppress AndroidDomInspection -->
137         <!--`suppress AndroidDomInspection` removes the error about the default value being blank. -->
138         <EditTextPreference
139             android:key="tor_search_custom_url"
140             android:title="@string/tor_search_custom_url"
141             android:defaultValue=""
142             android:inputType="textUri" />
143     </PreferenceCategory>
144
145     <PreferenceCategory
146         android:key="search_category"
147         android:title="@string/search" >
148
149         <ListPreference
150             android:key="search"
151             android:title="@string/search"
152             android:entries="@array/search_entries"
153             android:entryValues="@array/search_entry_values"
154             android:defaultValue="https://duckduckgo.com/html/?q="
155             android:icon="?attr/searchIcon" />
156
157         <!--suppress AndroidDomInspection -->
158         <!--`suppress AndroidDomInspection` removes the error about the default value being blank. -->
159         <EditTextPreference
160             android:key="search_custom_url"
161             android:title="@string/search_custom_url"
162             android:defaultValue=""
163             android:inputType="textUri" />
164     </PreferenceCategory>
165
166     <PreferenceCategory
167         android:key="full_screen"
168         android:title="@string/full_screen" >
169
170         <SwitchPreference
171             android:key="full_screen_browsing_mode"
172             android:title="@string/full_screen_browsing_mode"
173             android:summary="@string/full_screen_browsing_mode_summary"
174             android:defaultValue="false" />
175
176         <SwitchPreference
177             android:key="hide_system_bars"
178             android:title="@string/hide_system_bars"
179             android:summary="@string/hide_system_bars_summary"
180             android:defaultValue="false" />
181
182         <SwitchPreference
183             android:key="translucent_navigation_bar"
184             android:title="@string/translucent_navigation_bar"
185             android:summary="@string/translucent_navigation_bar_summary"
186             android:defaultValue="true" />
187     </PreferenceCategory>
188
189     <PreferenceCategory
190         android:key="clean_and_exit"
191         android:title="@string/clear_and_exit" >
192
193         <SwitchPreference
194             android:key="clear_everything"
195             android:title="@string/clear_everything"
196             android:summary="@string/clear_everything_summary"
197             android:defaultValue="true" />
198
199         <SwitchPreference
200             android:key="clear_cookies"
201             android:title="@string/clear_cookies_preference"
202             android:summary="@string/clear_cookies_summary"
203             android:defaultValue="true" />
204
205         <SwitchPreference
206             android:key="clear_dom_storage"
207             android:title="@string/clear_dom_storage_preference"
208             android:summary="@string/clear_dom_storage_summary"
209             android:defaultValue="true" />
210
211         <SwitchPreference
212             android:key="clear_form_data"
213             android:title="@string/clear_form_data_preference"
214             android:summary="@string/clear_form_data_summary"
215             android:defaultValue="true" />
216
217         <SwitchPreference
218             android:key="clear_cache"
219             android:title="@string/clear_cache"
220             android:summary="@string/clear_cache_summary"
221             android:defaultValue="true" />
222     </PreferenceCategory>
223
224     <PreferenceCategory
225         android:key="general"
226         android:title="@string/general" >
227
228         <EditTextPreference
229             android:key="homepage"
230             android:title="@string/homepage"
231             android:defaultValue="https://duckduckgo.com/?kao=-1&amp;kak=-1"
232             android:inputType="textUri"
233             android:icon="?attr/homepageIcon" />
234
235         <ListPreference
236             android:key="default_font_size"
237             android:title="@string/default_font_size"
238             android:entries="@array/default_font_size_entries"
239             android:entryValues="@array/default_font_size_entry_values"
240             android:defaultValue="100"
241             android:icon="?attr/fontSizeIcon" />
242
243         <SwitchPreference
244             android:key="swipe_to_refresh"
245             android:title="@string/swipe_to_refresh_preference"
246             android:summary="@string/swipe_to_refresh_summary"
247             android:defaultValue="true" />
248
249         <SwitchPreference
250             android:key="display_additional_app_bar_icons"
251             android:title="@string/display_additional_app_bar_icons"
252             android:summary="@string/display_additional_app_bar_icons_summary"
253             android:defaultValue="false" />
254
255         <SwitchPreference
256             android:key="dark_theme"
257             android:title="@string/dark_theme"
258             android:summary="@string/dark_theme_summary"
259             android:defaultValue="false" />
260
261         <SwitchPreference
262             android:key="night_mode"
263             android:title="@string/night_mode"
264             android:summary="@string/night_mode_summary"
265             android:defaultValue="false" />
266
267         <SwitchPreference
268             android:key="display_webpage_images"
269             android:title="@string/display_webpage_images"
270             android:summary="@string/display_webpage_images_summary"
271             android:defaultValue="true" />
272     </PreferenceCategory>
273 </PreferenceScreen>