mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-25 07:51:48 -05:00
Add filterTouchesWhenObscured to prevent Touch-Event Hijacking
This commit is contained in:
parent
84fcbba74d
commit
f841203f5f
@ -21,6 +21,10 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
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
|
<TextView
|
||||||
android:id="@+id/actionbar_cancel_text"
|
android:id="@+id/actionbar_cancel_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -30,6 +34,7 @@
|
|||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingRight="20dp"
|
android:paddingRight="20dp"
|
||||||
|
android:filterTouchesWhenObscured="true"
|
||||||
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
||||||
android:text="Cancel (set in-code!)" />
|
android:text="Cancel (set in-code!)" />
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
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
|
<TextView
|
||||||
android:id="@+id/actionbar_done_text"
|
android:id="@+id/actionbar_done_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -30,6 +34,7 @@
|
|||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingRight="20dp"
|
android:paddingRight="20dp"
|
||||||
|
android:filterTouchesWhenObscured="true"
|
||||||
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
||||||
android:text="Done (set in-code!)" />
|
android:text="Done (set in-code!)" />
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user