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

Commit f0bb8000 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Fix getHitRect() to return correct rect for transformed child"

parents 502a15ff 71c24059
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -9929,8 +9929,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            outRect.set(mLeft, mTop, mRight, mBottom);
        } else {
            final RectF tmpRect = mAttachInfo.mTmpTransformRect;
            tmpRect.set(-info.mPivotX, -info.mPivotY,
                    getWidth() - info.mPivotX, getHeight() - info.mPivotY);
            tmpRect.set(0, 0, getWidth(), getHeight());
            info.mMatrix.mapRect(tmpRect);
            outRect.set((int) tmpRect.left + mLeft, (int) tmpRect.top + mTop,
                    (int) tmpRect.right + mLeft, (int) tmpRect.bottom + mTop);