Merge "Fixing View.getBoundsOnScreen()" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a3b6728933
@ -4676,13 +4676,13 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
|||||||
}
|
}
|
||||||
|
|
||||||
RectF position = mAttachInfo.mTmpTransformRect;
|
RectF position = mAttachInfo.mTmpTransformRect;
|
||||||
position.setEmpty();
|
position.set(0, 0, mRight - mLeft, mBottom - mTop);
|
||||||
|
|
||||||
if (!hasIdentityMatrix()) {
|
if (!hasIdentityMatrix()) {
|
||||||
getMatrix().mapRect(position);
|
getMatrix().mapRect(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
position.offset(mLeft, mRight);
|
position.offset(mLeft, mTop);
|
||||||
|
|
||||||
ViewParent parent = mParent;
|
ViewParent parent = mParent;
|
||||||
while (parent instanceof View) {
|
while (parent instanceof View) {
|
||||||
|
Reference in New Issue
Block a user