1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
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.
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.
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/>. -->
21 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
24 android:title="@string/privacy" >
27 android:key="javascript_enabled"
28 android:title="@string/javascript_preference"
29 android:summary="@string/javascript_preference_summary"
30 android:defaultValue="false" />
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" />
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" />
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" />
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" />
57 <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row. -->
58 <!-- android:imeOptions="flagNoExtractUi" is not set because with the dedicated number row there often isn't room to see the EditText in landscape orientation. -->
60 android:key="custom_user_agent"
61 android:title="@string/custom_user_agent"
62 android:defaultValue="PrivacyBrowser/1.0"
63 android:inputType="textVisiblePassword|textMultiLine" />
69 android:title="@string/search">
72 android:key="javascript_disabled_search"
73 android:title="@string/javascript_disabled_search"
74 android:entries="@array/javascript_disabled_search_entries"
75 android:entryValues="@array/javascript_disabled_search_entry_values"
76 android:defaultValue="https://duckduckgo.com/html/?q=" />
78 <!-- android:imeOptions="flagNoExtractUi" is not set because with the the length of the title of the dialog box there often isn't enough space to see the EditText in landscape orientation. -->
80 android:key="javascript_disabled_search_custom_url"
81 android:title="@string/javascript_disabled_search_custom_url"
82 android:defaultValue=""
83 android:inputType="textUri"
84 android:singleLine="true" />
87 android:key="javascript_enabled_search"
88 android:title="@string/javascript_enabled_search"
89 android:entries="@array/javascript_enabled_search_entries"
90 android:entryValues="@array/javascript_enabled_search_entry_values"
91 android:defaultValue="https://duckduckgo.com/?q=" />
93 <!-- android:imeOptions="flagNoExtractUi" is not set because with the the length of the title of the dialog box there often isn't enough space to see the EditText in landscape orientation. -->
95 android:key="javascript_enabled_search_custom_url"
96 android:title="@string/javascript_enabled_search_custom_url"
97 android:defaultValue=""
98 android:inputType="textUri"
99 android:singleLine="true" />
100 </PreferenceCategory>
103 android:key="general"
104 android:title="@string/general" >
106 <!-- android:imeOptions="flagNoExtractUi" is not set because in special character mode there often isn't enough space to see the EditText in landscape orientation. -->
108 android:key="homepage"
109 android:title="@string/homepage_preference"
110 android:defaultValue="https://www.duckduckgo.com"
111 android:inputType="textUri"
112 android:singleLine="true" />
115 android:key="swipe_to_refresh_enabled"
116 android:title="@string/swipe_to_refresh_enabled"
117 android:summary="@string/swipe_to_refresh_enabled_summary"
118 android:defaultValue="true" />
119 </PreferenceCategory>