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

Commit 5a02366b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make overlay display valid in accessibility" into main

parents a6cc743a 3d5d633e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5610,7 +5610,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
        }

        private boolean isValidDisplay(@Nullable Display display) {
            if (display == null || display.getType() == Display.TYPE_OVERLAY) {
            if (display == null) {
                return false;
            }
            // Private virtual displays are created by the ap and is not allowed to access by other
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ final class AccessibilityController {
            final DisplayContent dc = mService.mRoot.getDisplayContent(displayId);
            if (dc != null) {
                final Display display = dc.getDisplay();
                if (display != null && display.getType() != Display.TYPE_OVERLAY) {
                if (display != null) {
                    final DisplayMagnifier magnifier = new DisplayMagnifier(
                            mService, dc, display, callbacks);
                    magnifier.notifyImeWindowVisibilityChanged(