]> 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 a27c1d83a5019d42410a4e2c4b04916e75e7d628..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" >
@@ -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"
@@ -58,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" />