Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11b6279e authored by Phil Weaver's avatar Phil Weaver Committed by android-build-merger
Browse files

Don't enable a11y service if scary dialog obscured am: 9a1b4eb2 am: 5d6d70a5

am: beb7f31d

Change-Id: I13dc112b756569d68bddad1716db0e3979d0c150
parents 704c02db beb7f31d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -196,7 +196,7 @@ public class ToggleAccessibilityServicePreferenceFragment
                    @Override
                    @Override
                    public boolean onTouch(View v, MotionEvent event) {
                    public boolean onTouch(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();