commit | adf8f8bc608912f588467f92b8d098ebf5397b4b | [log] [tgz] |
---|---|---|
author | Phil Weaver <pweaver@google.com> | Fri May 12 22:07:24 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri May 12 22:07:24 2017 +0000 |
tree | 9a45139c4f491f0495f15d728568133becf2dbb7 | |
parent | 89657550accc1da764dcd7442a091d3f9d97ab6a [diff] | |
parent | 11b6279ed4a4bba9a2deb6cefab0f4b1c5988ae0 [diff] |
Don't enable a11y service if scary dialog obscured am: 9a1b4eb21f am: 5d6d70a50e am: beb7f31d67 am: 11b6279ed4 Change-Id: I370c3f0ffc78f86b465d9721a753503b03d56d54
diff --git a/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java b/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java index 4e2ebce..4221c94 100644 --- a/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java +++ b/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java
@@ -147,7 +147,7 @@ @Override public boolean onTouch(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();