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

* commit '2232adddc56bb8764a95bbde0c05e0f02f6a1db5':
  Offset accessibility focus rect for view root's scrollY
This commit is contained in:
Alan Viverette
2015-05-26 22:35:38 +00:00
committed by Android Git Automerger

View File

@@ -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();