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

Commit 6170cca0 authored by Svetoslav's avatar Svetoslav
Browse files

Not touchable windows should not hide windows behind

When computing which windows to report for accessibility we were not
reporting windows behind non touchable ones. However, if a window is
not-touchable the touch events go to the window behind it. Hence, a
not-touchable window should not affect the reproted windows for
accessibility.

Change-Id: I213a32b33b0986a73d8bbdf0a3e40e6ca6e4261b
parent aebc0cd5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -961,8 +961,6 @@ final class AccessibilityController {
                    // If the window is not touchable, do not report it but take into account
                    // the space it takes since the content behind it cannot be touched.
                    if ((flags & WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE) != 0) {
                        unaccountedSpace.op(boundsInScreen, unaccountedSpace,
                                Region.Op.DIFFERENCE);
                        continue;
                    }