]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/xml/preferences.xml
Fix crash when adding domain settings with null domain. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / preferences.xml
index 5d1abb9b943d2c398290b1eef16f1e9fb24a857a..4957727ce100643c1ffe067d966a12902c1470d3 100644 (file)
@@ -18,7 +18,9 @@
   You should have received a copy of the GNU General Public License
   along with Privacy Browser Android.  If not, see <http://www.gnu.org/licenses/>. -->
 
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+<PreferenceScreen
+    xmlns:android="http://schemas.android.com/apk/res/android" >
+
     <PreferenceCategory
         android:key="privacy"
         android:title="@string/privacy" >
@@ -30,7 +32,7 @@
             android:defaultValue="false" />
 
         <SwitchPreference
-            android:key="cookies"
+            android:key="@string/cookies_key"
             android:title="@string/cookies"
             android:summary="@string/cookies_preference_summary"
             android:defaultValue="false" />
@@ -49,7 +51,7 @@
             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"
 
         <!-- 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" />
 
+        <SwitchPreference
+            android:key="@string/x_requested_with_header_key"
+            android:title="@string/x_requested_with_header"
+            android:summary="@string/x_requested_with_header_summary"
+            android:defaultValue="true" />
+
         <SwitchPreference
             android:key="incognito_mode"
             android:title="@string/incognito_mode"
@@ -70,7 +78,7 @@
             android:defaultValue="false" />
 
         <SwitchPreference
-            android:key="allow_screenshots"
+            android:key="@string/allow_screenshots_key"
             android:title="@string/allow_screenshots"
             android:summary="@string/allow_screenshots_summary"
             android:defaultValue="false" />
         android:title="@string/url_modification" >
 
         <SwitchPreference
-            android:key="tracking_queries"
+            android:key="@string/tracking_queries_key"
             android:title="@string/tracking_queries"
             android:summary="@string/tracking_queries_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="amp_redirects"
+            android:key="@string/amp_redirects_key"
             android:title="@string/amp_redirects"
             android:summary="@string/amp_redirects_summary"
             android:defaultValue="true" />
             android:defaultValue="@string/proxy_default_value" />
 
         <EditTextPreference
-            android:key="proxy_custom_url"
+            android:key="@string/proxy_custom_url_key"
             android:title="@string/proxy_custom_url"
             android:defaultValue="@string/proxy_custom_url_default_value"
             android:inputType="textUri" />
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="clear_logcat"
-            android:title="@string/clear_logcat_preference"
+            android:key="@string/clear_logcat_key"
+            android:title="@string/clear_logcat"
             android:summary="@string/clear_logcat_summary"
             android:defaultValue="true" />
 
 
         <!-- `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: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" />
 
         <SwitchPreference
-            android:key="download_with_external_app"
+            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" />
 
         <SwitchPreference
-            android:key="scroll_app_bar"
+            android:key="@string/scroll_app_bar_key"
             android:title="@string/scroll_app_bar"
             android:summary="@string/scroll_app_bar_summary"
             android:defaultValue="true" />
 
         <SwitchPreference
-            android:key="bottom_app_bar"
+            android:key="@string/bottom_app_bar_key"
             android:title="@string/bottom_app_bar"
             android:summary="@string/bottom_app_bar_summary"
             android:defaultValue="false" />
 
         <SwitchPreference
-            android:key="display_additional_app_bar_icons"
+            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" />
             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" />