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

Commit 22d8a776 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Use bounds in screen for better A11y backwards compatibility" into lmp-dev

parents f3542fd6 f86cb678
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);
        }