Add options menu item for adding/editing domain settings. https://redmine.stoutner...
[PrivacyBrowser.git] / app / src / main / res / menu / webview_options_menu.xml
index 8dee5b1d2ff5856f7a01ca9841bcde076355f22f..b6af5e02181dda8266a8475f25748d4a1234e978 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  Copyright 2015-2016 Soren Stoutner <soren@stoutner.com>.
+  Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
 
   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
 
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
-    tools:context=".MainWebViewActivity">
+    tools:context=".activities.MainWebViewActivity" >
 
     <item
-        android:id="@+id/toggleJavaScript"
+        android:id="@+id/toggle_javascript"
         android:title="@string/javascript"
         android:orderInCategory="10"
         app:showAsAction="ifRoom" />
 
     <item
-        android:id="@+id/toggleFirstPartyCookies"
-        android:title="@string/first_party_cookies"
+        android:id="@+id/add_or_edit_domain"
+        android:title="@string/add_domain_settings"
         android:orderInCategory="20"
+        app:showAsAction="never" />
+
+    <item
+        android:id="@+id/toggle_first_party_cookies"
+        android:title="@string/first_party_cookies"
+        android:orderInCategory="30"
         android:checkable="true"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/toggleThirdPartyCookies"
+        android:id="@+id/toggle_third_party_cookies"
         android:title="@string/third_party_cookies"
-        android:orderInCategory="30"
+        android:orderInCategory="40"
         android:checkable="true"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/toggleDomStorage"
+        android:id="@+id/toggle_dom_storage"
         android:title="@string/dom_storage"
-        android:orderInCategory="40"
+        android:orderInCategory="50"
         android:checkable="true"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/toggleSaveFormData"
+        android:id="@+id/toggle_save_form_data"
         android:title="@string/form_data"
-        android:orderInCategory="50"
+        android:orderInCategory="60"
         android:checkable="true"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/clearCookies"
+        android:id="@+id/clear_cookies"
         android:title="@string/clear_cookies"
-        android:orderInCategory="60"
+        android:orderInCategory="70"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/clearDomStorage"
+        android:id="@+id/clear_dom_storage"
         android:title="@string/clear_dom_storage"
-        android:orderInCategory="70"
+        android:orderInCategory="80"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/clearFormData"
+        android:id="@+id/clear_form_data"
         android:title="@string/clear_form_data"
-        android:orderInCategory="80"
+        android:orderInCategory="90"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/fontSize"
+        android:id="@+id/font_size"
         android:title="@string/font_size"
-        android:orderInCategory="90"
+        android:orderInCategory="100"
         app:showAsAction="never" >
 
         <menu>
             <group android:checkableBehavior="single">
                 <item
-                    android:id="@+id/fontSizeFiftyPercent"
+                    android:id="@+id/font_size_twenty_five_percent"
+                    android:title="@string/twenty_five_percent"
+                    android:orderInCategory="101"
+                    app:showAsAction="never" />
+
+                <item
+                    android:id="@+id/font_size_fifty_percent"
                     android:title="@string/fifty_percent"
-                    android:orderInCategory="91"
+                    android:orderInCategory="102"
                     app:showAsAction="never" />
 
                 <item
-                    android:id="@+id/fontSizeSeventyFivePercent"
+                    android:id="@+id/font_size_seventy_five_percent"
                     android:title="@string/seventy_five_percent"
-                    android:orderInCategory="92"
+                    android:orderInCategory="103"
                     app:showAsAction="never" />
 
                 <item
-                    android:id="@+id/fontSizeOneHundredPercent"
+                    android:id="@+id/font_size_one_hundred_percent"
                     android:title="@string/one_hundred_percent"
-                    android:orderInCategory="93"
+                    android:orderInCategory="104"
                     app:showAsAction="never" />
 
                 <item
-                    android:id="@+id/fontSizeOneHundredTwentyFivePercent"
+                    android:id="@+id/font_size_one_hundred_twenty_five_percent"
                     android:title="@string/one_hundred_twenty_five_percent"
-                    android:orderInCategory="94"
+                    android:orderInCategory="105"
                     app:showAsAction="never" />
 
                 <item
-                    android:id="@+id/fontSizeOneHundredFiftyPercent"
+                    android:id="@+id/font_size_one_hundred_fifty_percent"
                     android:title="@string/one_hundred_fifty_percent"
-                    android:orderInCategory="95"
+                    android:orderInCategory="106"
                     app:showAsAction="never" />
 
                 <item
-                    android:id="@+id/fontSizeOneHundredSeventyFivePercent"
+                    android:id="@+id/font_size_one_hundred_seventy_five_percent"
                     android:title="@string/one_hundred_seventy_five_percent"
-                    android:orderInCategory="96"
+                    android:orderInCategory="107"
                     app:showAsAction="never" />
 
                 <item
-                    android:id="@+id/fontSizeTwoHundredPercent"
+                    android:id="@+id/font_size_two_hundred_percent"
                     android:title="@string/two_hundred_percent"
-                    android:orderInCategory="97"
+                    android:orderInCategory="108"
                     app:showAsAction="never" />
             </group>
         </menu>
     </item>
 
     <item
-        android:id="@+id/find_on_page"
-        android:title="@string/find_on_page"
-        android:orderInCategory="100"
-        app:showAsAction="never|collapseActionView" />
-
-    <item
-        android:id="@+id/share"
-        android:title="@string/share"
+        android:id="@+id/display_images"
+        android:title="@string/display_images"
         android:orderInCategory="110"
+        android:checkable="true"
         app:showAsAction="never" />
 
     <item
-        android:id="@+id/addToHomescreen"
-        android:title="@string/add_to_home_screen"
+        android:id="@+id/share"
+        android:title="@string/share"
         android:orderInCategory="120"
         app:showAsAction="never" />
 
+    <item
+        android:id="@+id/find_on_page"
+        android:title="@string/find_on_page"
+        android:orderInCategory="130"
+        app:showAsAction="never|collapseActionView" />
     <item
         android:id="@+id/print"
         android:title="@string/print"
-        android:orderInCategory="130"
+        android:orderInCategory="140"
+        app:showAsAction="never" />
+
+    <item
+        android:id="@+id/add_to_homescreen"
+        android:title="@string/add_to_home_screen"
+        android:orderInCategory="150"
         app:showAsAction="never" />
 
     <item
         android:id="@+id/refresh"
         android:title="@string/refresh"
-        android:orderInCategory="140"
+        android:orderInCategory="160"
         app:showAsAction="never" />
-</menu>
+</menu>
\ No newline at end of file