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

Commit be9106a9 authored by Eugene Susla's avatar Eugene Susla
Browse files

[DO NOT MERGE] Fix focusable a11y overlay obstructing introspection

Fixes: 77294673
Test: ensure attached bug is fixed
Change-Id: I425dcb6a8c6f598cf295b155017b4c5f519394f1
(cherry picked from commit 04226362)
parent 52ef0370
Loading
Loading
Loading
Loading
+24 −22
Original line number Diff line number Diff line
@@ -1102,14 +1102,14 @@ final class AccessibilityController {
                        }
                    }

                    if (windowState.mAttrs.type !=
                            WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY) {

                        // Account for the space this window takes if the window
                        // is not an accessibility overlay which does not change
                        // the reported windows.
                    if (windowState.mAttrs.type !=
                            WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY) {
                        unaccountedSpace.op(boundsInScreen, unaccountedSpace,
                                Region.Op.REVERSE_DIFFERENCE);
                    }

                        // If a window is modal it prevents other windows from being touched
                        if ((flags & (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
@@ -1131,6 +1131,8 @@ final class AccessibilityController {
                                break;
                            }
                        }
                    }

                    // We figured out what is touchable for the entire screen - done.
                    if (unaccountedSpace.isEmpty()) {
                        break;