Merge "Don't enable a11y service if scary dialog obscured" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-07 05:47:32 +00:00
committed by Android (Google) Code Review

View File

@@ -53,7 +53,7 @@ public class AccessibilityServiceWarning {
final View.OnTouchListener filterTouchListener = (View v, MotionEvent event) -> {
// 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) {
Toast.makeText(v.getContext(), R.string.touch_filtered_warning,
Toast.LENGTH_SHORT).show();