]> 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 14396430866ee7ce33c59cb24e0b30578c4b7b20..4957727ce100643c1ffe067d966a12902c1470d3 100644 (file)
@@ -51,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"
@@ -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" />
 
         <!-- `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" />
             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" />