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

Commit d0c73f49 authored by Alan Viverette's avatar Alan Viverette
Browse files

Don't ignore accessibility overlays during visibility computation

Just don't use then to compute unaccounted space. This is a partial
revert of commit 9538eea5.

Change-Id: Ie2e29c8934da8ef707d20db1333abd4e240cd213
parent 3a9a53cb
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -992,12 +992,6 @@ final class AccessibilityController {
                        continue;
                        continue;
                    }
                    }


                    // If the window is an accessibility overlay - ignore.
                    if (windowState.mAttrs.type ==
                            WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY) {
                        continue;
                    }

                    // Compute the bounds in the screen.
                    // Compute the bounds in the screen.
                    final Rect boundsInScreen = mTempRect;
                    final Rect boundsInScreen = mTempRect;
                    computeWindowBoundsInScreen(windowState, boundsInScreen);
                    computeWindowBoundsInScreen(windowState, boundsInScreen);
@@ -1018,8 +1012,14 @@ final class AccessibilityController {
                        }
                        }
                    }
                    }


                    // 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,
                        unaccountedSpace.op(boundsInScreen, unaccountedSpace,
                                Region.Op.REVERSE_DIFFERENCE);
                                Region.Op.REVERSE_DIFFERENCE);
                    }


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