]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/xml/preferences.xml
Release 1.6.
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2016 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         <ListPreference
51             android:key="user_agent"
52             android:title="@string/user_agent"
53             android:entries="@array/user_agent_entries"
54             android:entryValues="@array/user_agent_entry_values"
55             android:defaultValue="Default user agent" />
56
57         // Android doesn't let EditTextPreferences have more than one line, but I include singleLine="false" in case they ever wisen up.
58         <EditTextPreference
59             android:key="custom_user_agent"
60             android:title="@string/custom_user_agent"
61             android:defaultValue="PrivacyBrowser/1.0"
62             android:inputType="textUri"
63             android:singleLine="false"/>
64     </PreferenceCategory>
65
66     <PreferenceCategory
67         android:key="search"
68         android:title="@string/search">
69
70         <ListPreference
71             android:key="javascript_disabled_search"
72             android:title="@string/javascript_disabled_search"
73             android:entries="@array/javascript_disabled_search_entries"
74             android:entryValues="@array/javascript_disabled_search_entry_values"
75             android:defaultValue="https://duckduckgo.com/html/?q=" />
76
77         <EditTextPreference
78             android:key="javascript_disabled_search_custom_url"
79             android:title="@string/javascript_disabled_search_custom_url"
80             android:defaultValue=""
81             android:inputType="textUri"
82             android:singleLine="true" />
83
84         <ListPreference
85             android:key="javascript_enabled_search"
86             android:title="@string/javascript_enabled_search"
87             android:entries="@array/javascript_enabled_search_entries"
88             android:entryValues="@array/javascript_enabled_search_entry_values"
89             android:defaultValue="https://duckduckgo.com/?q=" />
90
91         <EditTextPreference
92             android:key="javascript_enabled_search_custom_url"
93             android:title="@string/javascript_enabled_search_custom_url"
94             android:defaultValue=""
95             android:inputType="textUri"
96             android:singleLine="true" />
97     </PreferenceCategory>
98
99     <PreferenceCategory
100         android:key="general"
101         android:title="@string/general" >
102
103         <EditTextPreference
104             android:key="homepage"
105             android:title="@string/homepage_preference"
106             android:defaultValue="https://www.duckduckgo.com"
107             android:inputType="textUri"
108             android:singleLine="true" />
109
110         <SwitchPreference
111             android:key="swipe_to_refresh_enabled"
112             android:title="@string/swipe_to_refresh_enabled"
113             android:summary="@string/swipe_to_refresh_enabled_summary"
114             android:defaultValue="true" />
115     </PreferenceCategory>
116 </PreferenceScreen>