aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-10-01 10:51:02 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-10-01 10:51:02 +0200
commitf841203f5f9a06f96f15219b2053237e7fc62ba8 (patch)
treeac97ed383695fbbb64f2b4049e96e6eed83308cd /OpenKeychain/src/main
parent84fcbba74d7567e641b9077bea7d7dc39cfd21eb (diff)
downloadopen-keychain-f841203f5f9a06f96f15219b2053237e7fc62ba8.tar.gz
open-keychain-f841203f5f9a06f96f15219b2053237e7fc62ba8.tar.bz2
open-keychain-f841203f5f9a06f96f15219b2053237e7fc62ba8.zip
Add filterTouchesWhenObscured to prevent Touch-Event Hijacking
Diffstat (limited to 'OpenKeychain/src/main')
-rw-r--r--OpenKeychain/src/main/res/layout/actionbar_include_cancel_button.xml5
-rw-r--r--OpenKeychain/src/main/res/layout/actionbar_include_done_button.xml5
2 files changed, 10 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/res/layout/actionbar_include_cancel_button.xml b/OpenKeychain/src/main/res/layout/actionbar_include_cancel_button.xml
index 5fd36286b..ec27e394a 100644
--- a/OpenKeychain/src/main/res/layout/actionbar_include_cancel_button.xml
+++ b/OpenKeychain/src/main/res/layout/actionbar_include_cancel_button.xml
@@ -21,6 +21,10 @@
android:layout_height="match_parent"
android:layout_weight="1">
+ <!--
+ android:filterTouchesWhenObscured="true" to prevent Touch-Event Hijacking
+ https://blog.lookout.com/blog/2010/12/09/android-touch-event-hijacking/
+ -->
<TextView
android:id="@+id/actionbar_cancel_text"
android:layout_width="wrap_content"
@@ -30,6 +34,7 @@
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:paddingRight="20dp"
+ android:filterTouchesWhenObscured="true"
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
android:text="Cancel (set in-code!)" />
diff --git a/OpenKeychain/src/main/res/layout/actionbar_include_done_button.xml b/OpenKeychain/src/main/res/layout/actionbar_include_done_button.xml
index e51f63c80..2590f272c 100644
--- a/OpenKeychain/src/main/res/layout/actionbar_include_done_button.xml
+++ b/OpenKeychain/src/main/res/layout/actionbar_include_done_button.xml
@@ -21,6 +21,10 @@
android:layout_height="match_parent"
android:layout_weight="1">
+ <!--
+ android:filterTouchesWhenObscured="true" to prevent Touch-Event Hijacking
+ https://blog.lookout.com/blog/2010/12/09/android-touch-event-hijacking/
+ -->
<TextView
android:id="@+id/actionbar_done_text"
android:layout_width="wrap_content"
@@ -30,6 +34,7 @@
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:paddingRight="20dp"
+ android:filterTouchesWhenObscured="true"
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
android:text="Done (set in-code!)" />