along with Privacy Browser Android. If not, see <http://www.gnu.org/licenses/>. -->
<PreferenceScreen
- xmlns:android="http://schemas.android.com/apk/res/android" >
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
- android:key="@string/privacy_category_key"
- android:title="@string/privacy" >
+ app:key="@string/privacy_category_key"
+ app:title="@string/privacy" >
<SwitchPreferenceCompat
- android:key="@string/javascript_key"
- android:title="@string/javascript"
- android:summary="@string/javascript_preference_summary"
- android:defaultValue="false" />
+ app:key="@string/javascript_key"
+ app:title="@string/javascript"
+ app:summary="@string/javascript_preference_summary"
+ app:defaultValue="false" />
<SwitchPreferenceCompat
- android:key="@string/cookies_key"
- android:title="@string/cookies"
- android:summary="@string/cookies_preference_summary"
- android:defaultValue="false" />
+ app:key="@string/cookies_key"
+ app:title="@string/cookies"
+ app:summary="@string/cookies_preference_summary"
+ app:defaultValue="false" />
<SwitchPreferenceCompat
- android:key="@string/dom_storage_key"
- android:title="@string/dom_storage_preference"
- android:summary="@string/dom_storage_preference_summary"
- android:defaultValue="false" />
+ app:key="@string/dom_storage_key"
+ app:title="@string/dom_storage_preference"
+ app:summary="@string/dom_storage_preference_summary"
+ app:defaultValue="false" />
<!-- Save form data can be removed once the minimum API >= 26. -->
<SwitchPreferenceCompat
- android:key="@string/save_form_data_key"
- android:title="@string/save_form_data_preference"
- android:summary="@string/save_form_data_preference_summary"
- android:defaultValue="false" />
+ app:key="@string/save_form_data_key"
+ app:title="@string/save_form_data_preference"
+ app:summary="@string/save_form_data_preference_summary"
+ app:defaultValue="false" />
<ListPreference
- android:key="@string/user_agent_key"
- android:title="@string/user_agent"
- android:entries="@array/translated_user_agent_names"
- android:entryValues="@array/user_agent_names"
- android:defaultValue="@string/user_agent_default_value"
- android:icon="@drawable/user_agent" />
+ app:key="@string/user_agent_key"
+ app:title="@string/user_agent"
+ app:entries="@array/translated_user_agent_names"
+ app:entryValues="@array/user_agent_names"
+ app:defaultValue="@string/user_agent_default_value"
+ app:icon="@drawable/user_agent" />
<!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
<EditTextPreference
- android:key="@string/custom_user_agent_key"
- android:title="@string/custom_user_agent"
- android:defaultValue="@string/custom_user_agent_default_value"
+ app:key="@string/custom_user_agent_key"
+ app:title="@string/custom_user_agent"
+ app:defaultValue="@string/custom_user_agent_default_value"
android:inputType="textVisiblePassword|textMultiLine" />
<SwitchPreferenceCompat
- android:key="@string/incognito_mode_key"
- android:title="@string/incognito_mode"
- android:summary="@string/incognito_mode_summary"
- android:defaultValue="false" />
+ app:key="@string/incognito_mode_key"
+ app:title="@string/incognito_mode"
+ app:summary="@string/incognito_mode_summary"
+ app:defaultValue="false" />
<SwitchPreferenceCompat
- android:key="@string/allow_screenshots_key"
- android:title="@string/allow_screenshots"
- android:summary="@string/allow_screenshots_summary"
- android:defaultValue="false" />
+ app:key="@string/allow_screenshots_key"
+ app:title="@string/allow_screenshots"
+ app:summary="@string/allow_screenshots_summary"
+ app:defaultValue="false" />
</PreferenceCategory>
<PreferenceCategory
- android:key="blocklists"
- android:title="@string/blocklists" >
+ app:key="blocklists"
+ app:title="@string/blocklists" >
<SwitchPreferenceCompat
- android:key="@string/easylist_key"
- android:title="@string/easylist"
- android:summary="@string/easylist_summary"
- android:defaultValue="true" />
+ app:key="@string/easylist_key"
+ app:title="@string/easylist"
+ app:summary="@string/easylist_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/easyprivacy_key"
- android:title="@string/easyprivacy"
- android:summary="@string/easyprivacy_summary"
- android:defaultValue="true" />
+ app:key="@string/easyprivacy_key"
+ app:title="@string/easyprivacy"
+ app:summary="@string/easyprivacy_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/fanboys_annoyance_list_key"
- android:title="@string/fanboys_annoyance_list"
- android:summary="@string/fanboys_annoyance_list_summary"
- android:defaultValue="true" />
+ app:key="@string/fanboys_annoyance_list_key"
+ app:title="@string/fanboys_annoyance_list"
+ app:summary="@string/fanboys_annoyance_list_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/fanboys_social_blocking_list_key"
- android:title="@string/fanboys_social_blocking_list"
- android:summary="@string/fanboys_social_blocking_list_summary"
- android:defaultValue="true" />
+ app:key="@string/fanboys_social_blocking_list_key"
+ app:title="@string/fanboys_social_blocking_list"
+ app:summary="@string/fanboys_social_blocking_list_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/ultralist_key"
- android:title="@string/ultralist"
- android:summary="@string/ultralist_summary"
- android:defaultValue="true" />
+ app:key="@string/ultralist_key"
+ app:title="@string/ultralist"
+ app:summary="@string/ultralist_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/ultraprivacy_key"
- android:title="@string/ultraprivacy"
- android:summary="@string/ultraprivacy_summary"
- android:defaultValue="true" />
+ app:key="@string/ultraprivacy_key"
+ app:title="@string/ultraprivacy"
+ app:summary="@string/ultraprivacy_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/block_all_third_party_requests_key"
- android:title="@string/block_all_third_party_requests"
- android:summary="@string/block_all_third_party_requests_summary"
- android:defaultValue="false" />
+ app:key="@string/block_all_third_party_requests_key"
+ app:title="@string/block_all_third_party_requests"
+ app:summary="@string/block_all_third_party_requests_summary"
+ app:defaultValue="false" />
</PreferenceCategory>
<PreferenceCategory
- android:key="url_modification"
- android:title="@string/url_modification" >
+ app:key="url_modification"
+ app:title="@string/url_modification" >
<SwitchPreferenceCompat
- android:key="@string/tracking_queries_key"
- android:title="@string/tracking_queries"
- android:summary="@string/tracking_queries_summary"
- android:defaultValue="true" />
+ app:key="@string/tracking_queries_key"
+ app:title="@string/tracking_queries"
+ app:summary="@string/tracking_queries_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/amp_redirects_key"
- android:title="@string/amp_redirects"
- android:summary="@string/amp_redirects_summary"
- android:defaultValue="true" />
+ app:key="@string/amp_redirects_key"
+ app:title="@string/amp_redirects"
+ app:summary="@string/amp_redirects_summary"
+ app:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
- android:key="search_category"
- android:title="@string/search" >
+ app:key="search_category"
+ app:title="@string/search" >
<ListPreference
- android:key="@string/search_key"
- android:title="@string/search"
- android:entries="@array/search_entries"
- android:entryValues="@array/search_entry_values"
- android:defaultValue="@string/search_default_value"
- android:icon="@drawable/search" />
+ app:key="@string/search_key"
+ app:title="@string/search"
+ app:entries="@array/search_entries"
+ app:entryValues="@array/search_entry_values"
+ app:defaultValue="@string/search_default_value"
+ app:icon="@drawable/search" />
<EditTextPreference
- android:key="@string/search_custom_url_key"
- android:title="@string/search_custom_url"
- android:defaultValue="@string/search_custom_url_default_value"
+ app:key="@string/search_custom_url_key"
+ app:title="@string/search_custom_url"
+ app:defaultValue="@string/search_custom_url_default_value"
android:inputType="textUri" />
</PreferenceCategory>
<PreferenceCategory
- android:key="proxy_category"
- android:title="@string/proxy" >
+ app:key="proxy_category"
+ app:title="@string/proxy" >
<ListPreference
- android:key="@string/proxy_key"
- android:title="@string/proxy"
- android:entries="@array/proxy_entries"
- android:entryValues="@array/proxy_entry_values"
- android:defaultValue="@string/proxy_default_value" />
+ app:key="@string/proxy_key"
+ app:title="@string/proxy"
+ app:entries="@array/proxy_entries"
+ app:entryValues="@array/proxy_entry_values"
+ app:defaultValue="@string/proxy_default_value" />
<EditTextPreference
- android:key="@string/proxy_custom_url_key"
- android:title="@string/proxy_custom_url"
- android:defaultValue="@string/proxy_custom_url_default_value"
+ app:key="@string/proxy_custom_url_key"
+ app:title="@string/proxy_custom_url"
+ app:defaultValue="@string/proxy_custom_url_default_value"
android:inputType="textUri" />
</PreferenceCategory>
<PreferenceCategory
- android:key="full_screen"
- android:title="@string/full_screen" >
+ app:key="full_screen"
+ app:title="@string/full_screen" >
<SwitchPreferenceCompat
- android:key="@string/full_screen_browsing_mode_key"
- android:title="@string/full_screen_browsing_mode"
- android:summary="@string/full_screen_browsing_mode_summary"
- android:defaultValue="false" />
+ app:key="@string/full_screen_browsing_mode_key"
+ app:title="@string/full_screen_browsing_mode"
+ app:summary="@string/full_screen_browsing_mode_summary"
+ app:defaultValue="false" />
<SwitchPreferenceCompat
- android:key="@string/hide_app_bar_key"
- android:title="@string/hide_app_bar"
- android:summary="@string/hide_app_bar_summary"
- android:defaultValue="true" />
+ app:key="@string/hide_app_bar_key"
+ app:title="@string/hide_app_bar"
+ app:summary="@string/hide_app_bar_summary"
+ app:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
- android:key="@string/clear_and_exit_category_key"
- android:title="@string/clear_and_exit" >
+ app:key="@string/clear_and_exit_category_key"
+ app:title="@string/clear_and_exit" >
<SwitchPreferenceCompat
- android:key="@string/clear_everything_key"
- android:title="@string/clear_everything"
- android:summary="@string/clear_everything_summary"
- android:defaultValue="true" />
+ app:key="@string/clear_everything_key"
+ app:title="@string/clear_everything"
+ app:summary="@string/clear_everything_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/clear_cookies_key"
- android:title="@string/clear_cookies_preference"
- android:summary="@string/clear_cookies_summary"
- android:defaultValue="true" />
+ app:key="@string/clear_cookies_key"
+ app:title="@string/clear_cookies_preference"
+ app:summary="@string/clear_cookies_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/clear_dom_storage_key"
- android:title="@string/clear_dom_storage_preference"
- android:summary="@string/clear_dom_storage_summary"
- android:defaultValue="true" />
+ app:key="@string/clear_dom_storage_key"
+ app:title="@string/clear_dom_storage_preference"
+ app:summary="@string/clear_dom_storage_summary"
+ app:defaultValue="true" />
<!-- Clear form data can be removed once the minimum API >= 26. -->
<SwitchPreferenceCompat
- android:key="@string/clear_form_data_key"
- android:title="@string/clear_form_data_preference"
- android:summary="@string/clear_form_data_summary"
- android:defaultValue="true" />
+ app:key="@string/clear_form_data_key"
+ app:title="@string/clear_form_data_preference"
+ app:summary="@string/clear_form_data_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/clear_logcat_key"
- android:title="@string/clear_logcat"
- android:summary="@string/clear_logcat_summary"
- android:defaultValue="true" />
+ app:key="@string/clear_logcat_key"
+ app:title="@string/clear_logcat"
+ app:summary="@string/clear_logcat_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/clear_cache_key"
- android:title="@string/clear_cache"
- android:summary="@string/clear_cache_summary"
- android:defaultValue="true" />
+ app:key="@string/clear_cache_key"
+ app:title="@string/clear_cache"
+ app:summary="@string/clear_cache_summary"
+ app:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
- android:key="general"
- android:title="@string/general" >
+ app:key="general"
+ app:title="@string/general" >
<EditTextPreference
- android:key="@string/homepage_key"
- android:title="@string/homepage"
- android:defaultValue="@string/homepage_default_value"
+ app:key="@string/homepage_key"
+ app:title="@string/homepage"
+ app:defaultValue="@string/homepage_default_value"
android:inputType="textUri"
- android:icon="@drawable/home" />
+ app:icon="@drawable/home" />
<!-- `android:inputType="number"` currently doesn't work with AndroidX. -->
<EditTextPreference
- android:key="@string/font_size_key"
- android:title="@string/font_size_preference"
- android:defaultValue="@string/font_size_default_value"
+ app:key="@string/font_size_key"
+ app:title="@string/font_size_preference"
+ app:defaultValue="@string/font_size_default_value"
android:inputType="number"
- android:icon="@drawable/font_size" />
+ app:icon="@drawable/font_size" />
<SwitchPreferenceCompat
- android:key="@string/open_intents_in_new_tab_key"
- android:title="@string/open_intents_in_new_tab"
- android:summary="@string/open_intents_in_new_tab_summary"
- android:defaultValue="true" />
+ app:key="@string/open_intents_in_new_tab_key"
+ app:title="@string/open_intents_in_new_tab"
+ app:summary="@string/open_intents_in_new_tab_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/swipe_to_refresh_key"
- android:title="@string/swipe_to_refresh"
- android:summary="@string/swipe_to_refresh_summary"
- android:defaultValue="true" />
+ app:key="@string/swipe_to_refresh_key"
+ app:title="@string/swipe_to_refresh"
+ app:summary="@string/swipe_to_refresh_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/download_with_external_app_key"
- android:title="@string/download_with_external_app"
- android:summary="@string/download_with_external_app_summary"
- android:defaultValue="false" />
+ app:key="@string/download_with_external_app_key"
+ app:title="@string/download_with_external_app"
+ app:summary="@string/download_with_external_app_summary"
+ app:defaultValue="false" />
<SwitchPreferenceCompat
- android:key="@string/scroll_app_bar_key"
- android:title="@string/scroll_app_bar"
- android:summary="@string/scroll_app_bar_summary"
- android:defaultValue="true" />
+ app:key="@string/scroll_app_bar_key"
+ app:title="@string/scroll_app_bar"
+ app:summary="@string/scroll_app_bar_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/bottom_app_bar_key"
- android:title="@string/bottom_app_bar"
- android:summary="@string/bottom_app_bar_summary"
- android:defaultValue="false" />
+ app:key="@string/bottom_app_bar_key"
+ app:title="@string/bottom_app_bar"
+ app:summary="@string/bottom_app_bar_summary"
+ app:defaultValue="false" />
<SwitchPreferenceCompat
- android:key="@string/display_additional_app_bar_icons_key"
- android:title="@string/display_additional_app_bar_icons"
- android:summary="@string/display_additional_app_bar_icons_summary"
- android:defaultValue="false" />
+ app:key="@string/display_additional_app_bar_icons_key"
+ app:title="@string/display_additional_app_bar_icons"
+ app:summary="@string/display_additional_app_bar_icons_summary"
+ app:defaultValue="false" />
<ListPreference
- android:key="@string/app_theme_key"
- android:title="@string/app_theme"
- android:entries="@array/app_theme_entries"
- android:entryValues="@array/app_theme_entry_values"
- android:defaultValue="@string/app_theme_default_value"
- android:icon="@drawable/app_theme" />
+ app:key="@string/app_theme_key"
+ app:title="@string/app_theme"
+ app:entries="@array/app_theme_entries"
+ app:entryValues="@array/app_theme_entry_values"
+ app:defaultValue="@string/app_theme_default_value"
+ app:icon="@drawable/app_theme" />
<ListPreference
- android:key="@string/webview_theme_key"
- android:title="@string/webview_theme"
- android:entries="@array/webview_theme_entries"
- android:entryValues="@array/webview_theme_entry_values"
- android:defaultValue="@string/webview_theme_default_value" />
+ app:key="@string/webview_theme_key"
+ app:title="@string/webview_theme"
+ app:entries="@array/webview_theme_entries"
+ app:entryValues="@array/webview_theme_entry_values"
+ app:defaultValue="@string/webview_theme_default_value" />
<SwitchPreferenceCompat
- android:key="@string/wide_viewport_key"
- android:title="@string/wide_viewport_preference"
- android:summary="@string/wide_viewport_summary"
- android:defaultValue="true" />
+ app:key="@string/wide_viewport_key"
+ app:title="@string/wide_viewport_preference"
+ app:summary="@string/wide_viewport_summary"
+ app:defaultValue="true" />
<SwitchPreferenceCompat
- android:key="@string/display_webpage_images_key"
- android:title="@string/display_webpage_images"
- android:summary="@string/display_webpage_images_summary"
- android:defaultValue="true" />
+ app:key="@string/display_webpage_images_key"
+ app:title="@string/display_webpage_images"
+ app:summary="@string/display_webpage_images_summary"
+ app:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>