Don't enable a11y service if scary dialog obscured am: 9a1b4eb21f
am: 5d6d70a50e
Change-Id: Ib4fca899498f1348263beff3908c24a9ec65c392
This commit is contained in:
@@ -196,7 +196,7 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
@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();
|
||||
|
Reference in New Issue
Block a user