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

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

Use bounds in screen for better A11y backwards compatibility

BUG: 17203775
Change-Id: I9db3de6bf4a67d705489d4ca9d29efe52a36e071
parent 9897c73f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -15110,7 +15110,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        final AccessibilityNodeInfo virtualView = viewRoot.getAccessibilityFocusedVirtualView();
        if (virtualView != null) {
            virtualView.getBoundsInParent(bounds);
            virtualView.getBoundsInScreen(bounds);
            final int[] offset = mAttachInfo.mTmpLocation;
            getLocationOnScreen(offset);
            bounds.offset(-offset[0], -offset[1]);
        } else {
            bounds.set(0, 0, mRight - mLeft, mBottom - mTop);
        }