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

Commit ba607f4d authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 2232addd: Offset accessibility focus rect for view root\'s scrollY

* commit '2232addd':
  Offset accessibility focus rect for view root's scrollY
parents 9b525941 2232addd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2787,7 +2787,9 @@ public final class ViewRootImpl implements ViewParent,
            return false;
        }

        // Transform the rect into window-relative coordinates.
        final AttachInfo attachInfo = mAttachInfo;
        bounds.offset(0, attachInfo.mViewRootImpl.mScrollY);
        bounds.offset(-attachInfo.mWindowLeft, -attachInfo.mWindowTop);
        bounds.intersect(0, 0, attachInfo.mViewRootImpl.mWidth, attachInfo.mViewRootImpl.mHeight);
        return !bounds.isEmpty();