Gello: LookLock

Prevent apps from reading gello webview content by using FLAG_SECURE

Change-Id: I7e3413104c4f71b11da4c55b45eeab05d133ea1f
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 8093824..1dc2c08 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -505,11 +505,15 @@
         Swipe from the edge to navigate across history.\nThis feature may conflict with websites using edge-based actions</string>
     <string name="pref_edge_enable">Enable</string>
     <string name="pref_edge_disable">Disable</string>
+    <!-- Colored statusbar -->
     <string name="pref_coloredsb_title">Colored statusbar</string>
     <string name="pref_coloredsb_summary">Statusbar will change color basing on the visited page</string>
     <!-- Title for accessibility settings [CHAR LIMIT=25] -->
     <string name="pref_accessibility_title">Accessibility</string>
     <string name="pref_accessibility_title_summary">Text size and zooming</string>
+    <!-- LookLock -->
+    <string name="pref_looklock_title">LookLock</string>
+    <string name="pref_looklock_summary">Prevent other apps from reading webview content from this app</string>
     <!-- Font size settings category under accessibility settings [CHAR LIMIT=50] -->
     <string name="pref_font_size_category">Text size</string>
     <!-- Title for the fullscreen lab feature [CHAR LIMIT=40] -->
diff --git a/res/xml/general_preferences.xml b/res/xml/general_preferences.xml
index 74e24d3..136e89f 100644
--- a/res/xml/general_preferences.xml
+++ b/res/xml/general_preferences.xml
@@ -101,6 +101,13 @@
             android:layout="@layout/swe_preference"
             android:key="content_settings" />
 
+        <SwitchPreference
+            android:layout="@layout/swe_preference"
+            android:defaultValue="false"
+            android:key="looklock_key"
+            android:summary="@string/pref_looklock_summary"
+            android:title="@string/pref_looklock_title" />
+
     </PreferenceCategory>
 
     <PreferenceCategory android:title="@string/pref_extras_title"