<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright 2016 Soren Stoutner <soren@stoutner.com>.
+ Copyright © 2016-2017 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
android:title="@string/user_agent"
android:entries="@array/user_agent_entries"
android:entryValues="@array/user_agent_entry_values"
- android:defaultValue="PrivacyBrowser/1.0" />
+ android:defaultValue="PrivacyBrowser/1.0"
+ android:icon="@drawable/user_agent" />
<!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
<EditTextPreference
android:inputType="textUri" />
<ListPreference
- android:key="tor_javascript_disabled_search"
- android:title="@string/tor_javascript_disabled_search"
- android:entries="@array/tor_javascript_disabled_search_entries"
- android:entryValues="@array/tor_javascript_disabled_search_entry_values"
+ android:key="tor_search"
+ android:title="@string/tor_search"
+ android:entries="@array/tor_search_entries"
+ android:entryValues="@array/tor_search_entry_values"
android:defaultValue="https://3g2upl4pq6kufc4m.onion/html/?q=" />
<EditTextPreference
- android:key="tor_javascript_disabled_search_custom_url"
- android:title="@string/tor_javascript_disabled_search_custom_url"
- android:defaultValue=""
- android:inputType="textUri" />
-
- <ListPreference
- android:key="tor_javascript_enabled_search"
- android:title="@string/tor_javascript_enabled_search"
- android:entries="@array/tor_javascript_enabled_search_entries"
- android:entryValues="@array/tor_javascript_enabled_search_entry_values"
- android:defaultValue="https://3g2upl4pq6kufc4m.onion/?q=" />
-
- <EditTextPreference
- android:key="tor_javascript_enabled_search_custom_url"
- android:title="@string/tor_javascript_enabled_search_custom_url"
+ android:key="tor_search_custom_url"
+ android:title="@string/tor_search_custom_url"
android:defaultValue=""
android:inputType="textUri" />
</PreferenceCategory>
<PreferenceCategory
- android:key="search"
- android:title="@string/search">
-
- <ListPreference
- android:key="javascript_disabled_search"
- android:title="@string/javascript_disabled_search"
- android:entries="@array/javascript_disabled_search_entries"
- android:entryValues="@array/javascript_disabled_search_entry_values"
- android:defaultValue="https://duckduckgo.com/html/?q=" />
-
- <EditTextPreference
- android:key="javascript_disabled_search_custom_url"
- android:title="@string/javascript_disabled_search_custom_url"
- android:defaultValue=""
- android:inputType="textUri" />
+ android:key="search_category"
+ android:title="@string/search" >
<ListPreference
- android:key="javascript_enabled_search"
- android:title="@string/javascript_enabled_search"
- android:entries="@array/javascript_enabled_search_entries"
- android:entryValues="@array/javascript_enabled_search_entry_values"
- android:defaultValue="https://duckduckgo.com/?q=" />
+ android:key="search"
+ android:title="@string/search"
+ android:entries="@array/search_entries"
+ android:entryValues="@array/search_entry_values"
+ android:defaultValue="https://duckduckgo.com/html/?q="
+ android:icon="@drawable/search_enabled" />
<EditTextPreference
- android:key="javascript_enabled_search_custom_url"
- android:title="@string/javascript_enabled_search_custom_url"
+ android:key="search_custom_url"
+ android:title="@string/search_custom_url"
android:defaultValue=""
android:inputType="textUri" />
</PreferenceCategory>
<PreferenceCategory
android:key="full_screen"
- android:title="@string/full_screen">
+ android:title="@string/full_screen" >
<SwitchPreference
- android:key="enable_full_screen_browsing_mode"
- android:title="@string/enable_full_screen_browsing_mode"
- android:summary="@string/enable_full_screen_browsing_mode_summary"
+ android:key="full_screen_browsing_mode"
+ android:title="@string/full_screen_browsing_mode"
+ android:summary="@string/full_screen_browsing_mode_summary"
android:defaultValue="false" />
<SwitchPreference
android:defaultValue="true" />
</PreferenceCategory>
+ <PreferenceCategory
+ android:key="clean_and_exit"
+ android:title="@string/clear_and_exit" >
+
+ <SwitchPreference
+ android:key="clear_everything"
+ android:title="@string/clear_everything"
+ android:summary="@string/clear_everything_summary"
+ android:defaultValue="true" />
+
+ <SwitchPreference
+ android:key="clear_cookies"
+ android:title="@string/clear_cookies_preference"
+ android:summary="@string/clear_cookies_summary"
+ android:defaultValue="true" />
+
+ <SwitchPreference
+ android:key="clear_dom_storage"
+ android:title="@string/clear_dom_storage_preference"
+ android:summary="@string/clear_dom_storage_summary"
+ android:defaultValue="true" />
+
+ <SwitchPreference
+ android:key="clear_form_data"
+ android:title="@string/clear_form_data_preference"
+ android:summary="@string/clear_form_data_summary"
+ android:defaultValue="true" />
+
+ <SwitchPreference
+ android:key="clear_cache"
+ android:title="@string/clear_cache"
+ android:summary="@string/clear_cache_summary"
+ android:defaultValue="true" />
+ </PreferenceCategory>
+
<PreferenceCategory
android:key="general"
android:title="@string/general" >
android:key="homepage"
android:title="@string/homepage"
android:defaultValue="https://duckduckgo.com"
- android:inputType="textUri" />
+ android:inputType="textUri"
+ android:icon="@drawable/home_enabled" />
<ListPreference
android:key="default_font_size"
android:title="@string/default_font_size"
android:entries="@array/default_font_size_entries"
android:entryValues="@array/default_font_size_entry_values"
- android:defaultValue="100" />
+ android:defaultValue="100"
+ android:icon="@drawable/font_size" />
<SwitchPreference
android:key="swipe_to_refresh"
android:title="@string/display_additional_app_bar_icons"
android:summary="@string/display_additional_app_bar_icons_summary"
android:defaultValue="false" />
+
+ <SwitchPreference
+ android:key="display_webpage_images"
+ android:title="@string/display_webpage_images"
+ android:summary="@string/display_webpage_images_summary"
+ android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>
\ No newline at end of file