]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/xml/preferences.xml
Add a bottom app bar to Settings. https://redmine.stoutner.com/issues/716
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / preferences.xml
index 14396430866ee7ce33c59cb24e0b30578c4b7b20..6bb415e24b59ab5ed6c47dd033e5cf529956032e 100644 (file)
     xmlns:android="http://schemas.android.com/apk/res/android" >
 
     <PreferenceCategory
-        android:key="privacy"
+        android:key="@string/privacy_category_key"
         android:title="@string/privacy" >
 
         <SwitchPreference
-            android:key="javascript"
+            android:key="@string/javascript_key"
             android:title="@string/javascript"
             android:summary="@string/javascript_preference_summary"
             android:defaultValue="false" />
             android:defaultValue="false" />
 
         <SwitchPreference
-            android:key="dom_storage"
+            android:key="@string/dom_storage_key"
             android:title="@string/dom_storage_preference"
             android:summary="@string/dom_storage_preference_summary"
             android:defaultValue="false" />
 
         <!-- Save form data can be removed once the minimum API >= 26. -->
         <SwitchPreference
-            android:key="save_form_data"
+            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" />
 
         <ListPreference
-            android:key="user_agent"
+            android:key="@string/user_agent_key"
             android:title="@string/user_agent"
             android:entries="@array/translated_user_agent_names"
             android:entryValues="@array/user_agent_names"
@@ -60,7 +60,7 @@
 
         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
         <EditTextPreference
-            android:key="custom_user_agent"
+            android:key="@string/custom_user_agent_key"
             android:title="@string/custom_user_agent"
             android:defaultValue="@string/custom_user_agent_default_value"
             android:inputType="textVisiblePassword|textMultiLine" />
@@ -72,7 +72,7 @@
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="incognito_mode"
+            android:key="@string/incognito_mode_key"
             android:title="@string/incognito_mode"
             android:summary="@string/incognito_mode_summary"
             android:defaultValue="false" />
         android:title="@string/blocklists" >
 
         <SwitchPreference
-            android:key="easylist"
+            android:key="@string/easylist_key"
             android:title="@string/easylist"
             android:summary="@string/easylist_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="easyprivacy"
+            android:key="@string/easyprivacy_key"
             android:title="@string/easyprivacy"
             android:summary="@string/easyprivacy_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="fanboys_annoyance_list"
+            android:key="@string/fanboys_annoyance_list_key"
             android:title="@string/fanboys_annoyance_list"
             android:summary="@string/fanboys_annoyance_list_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="fanboys_social_blocking_list"
+            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" />
 
         <SwitchPreference
-            android:key="ultralist"
+            android:key="@string/ultralist_key"
             android:title="@string/ultralist"
             android:summary="@string/ultralist_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="ultraprivacy"
+            android:key="@string/ultraprivacy_key"
             android:title="@string/ultraprivacy"
             android:summary="@string/ultraprivacy_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="block_all_third_party_requests"
+            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" />
         android:title="@string/search" >
 
         <ListPreference
-            android:key="search"
+            android:key="@string/search_key"
             android:title="@string/search"
             android:entries="@array/search_entries"
             android:entryValues="@array/search_entry_values"
             android:icon="@drawable/search" />
 
         <EditTextPreference
-            android:key="search_custom_url"
+            android:key="@string/search_custom_url_key"
             android:title="@string/search_custom_url"
             android:defaultValue="@string/search_custom_url_default_value"
             android:inputType="textUri" />
         android:title="@string/proxy" >
 
         <ListPreference
-            android:key="proxy"
+            android:key="@string/proxy_key"
             android:title="@string/proxy"
             android:entries="@array/proxy_entries"
             android:entryValues="@array/proxy_entry_values"
         android:title="@string/full_screen" >
 
         <SwitchPreference
-            android:key="full_screen_browsing_mode"
+            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" />
 
         <SwitchPreference
-            android:key="hide_app_bar"
+            android:key="@string/hide_app_bar_key"
             android:title="@string/hide_app_bar"
             android:summary="@string/hide_app_bar_summary"
             android:defaultValue="true" />
     </PreferenceCategory>
 
     <PreferenceCategory
-        android:key="clear_and_exit"
+        android:key="@string/clear_and_exit_category_key"
         android:title="@string/clear_and_exit" >
 
         <SwitchPreference
-            android:key="clear_everything"
+            android:key="@string/clear_everything_key"
             android:title="@string/clear_everything"
             android:summary="@string/clear_everything_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="clear_cookies"
+            android:key="@string/clear_cookies_key"
             android:title="@string/clear_cookies_preference"
             android:summary="@string/clear_cookies_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="clear_dom_storage"
+            android:key="@string/clear_dom_storage_key"
             android:title="@string/clear_dom_storage_preference"
             android:summary="@string/clear_dom_storage_summary"
             android:defaultValue="true" />
 
         <!-- Clear form data can be removed once the minimum API >= 26. -->
         <SwitchPreference
-            android:key="clear_form_data"
+            android:key="@string/clear_form_data_key"
             android:title="@string/clear_form_data_preference"
             android:summary="@string/clear_form_data_summary"
             android:defaultValue="true" />
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="clear_cache"
+            android:key="@string/clear_cache_key"
             android:title="@string/clear_cache"
             android:summary="@string/clear_cache_summary"
             android:defaultValue="true" />
         android:title="@string/general" >
 
         <EditTextPreference
-            android:key="homepage"
+            android:key="@string/homepage_key"
             android:title="@string/homepage"
             android:defaultValue="@string/homepage_default_value"
             android:inputType="textUri"
 
         <!-- `android:inputType="number"` currently doesn't work with AndroidX. -->
         <EditTextPreference
-            android:key="font_size"
+            android:key="@string/font_size_key"
             android:title="@string/font_size_preference"
             android:defaultValue="@string/font_size_default_value"
             android:inputType="number"
             android:icon="@drawable/font_size" />
 
         <SwitchPreference
-            android:key="open_intents_in_new_tab"
+            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" />
 
         <SwitchPreference
-            android:key="swipe_to_refresh"
+            android:key="@string/swipe_to_refresh_key"
             android:title="@string/swipe_to_refresh"
             android:summary="@string/swipe_to_refresh_summary"
             android:defaultValue="true" />
             android:defaultValue="false" />
 
         <ListPreference
-            android:key="app_theme"
+            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:icon="@drawable/app_theme" />
 
         <ListPreference
-            android:key="webview_theme"
+            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" />
 
         <SwitchPreference
-            android:key="wide_viewport"
+            android:key="@string/wide_viewport_key"
             android:title="@string/wide_viewport_preference"
             android:summary="@string/wide_viewport_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="display_webpage_images"
+            android:key="@string/display_webpage_images_key"
             android:title="@string/display_webpage_images"
             android:summary="@string/display_webpage_images_summary"
             android:defaultValue="true" />