Merge "Don't enable a11y service if scary dialog obscured" into oc-dev am: 0b9cd1b40e
am: ba98033945
Change-Id: I81533c721182e0e118bc2ed6eea7800c62b5be69
This commit is contained in:
@@ -53,7 +53,7 @@ public class AccessibilityServiceWarning {
|
|||||||
|
|
||||||
final View.OnTouchListener filterTouchListener = (View v, MotionEvent event) -> {
|
final View.OnTouchListener filterTouchListener = (View v, MotionEvent event) -> {
|
||||||
// Filter obscured touches by consuming them.
|
// Filter obscured touches by consuming them.
|
||||||
if ((event.getFlags() & MotionEvent.FLAG_WINDOW_IS_OBSCURED) != 0) {
|
if ((event.getFlags() & MotionEvent.FLAG_WINDOW_IS_PARTIALLY_OBSCURED) != 0) {
|
||||||
if (event.getAction() == MotionEvent.ACTION_UP) {
|
if (event.getAction() == MotionEvent.ACTION_UP) {
|
||||||
Toast.makeText(v.getContext(), R.string.touch_filtered_warning,
|
Toast.makeText(v.getContext(), R.string.touch_filtered_warning,
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
|
Reference in New Issue
Block a user