am a3b67289: Merge "Fixing View.getBoundsOnScreen()" into jb-dev

* commit 'a3b6728933c13599f3b2f22aad7016cdaa04d706':
  Fixing View.getBoundsOnScreen()
This commit is contained in:
Svetoslav Ganov
2012-05-09 01:49:10 -07:00
committed by Android Git Automerger

View File

@@ -4676,13 +4676,13 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
}
RectF position = mAttachInfo.mTmpTransformRect;
position.setEmpty();
position.set(0, 0, mRight - mLeft, mBottom - mTop);
if (!hasIdentityMatrix()) {
getMatrix().mapRect(position);
}
position.offset(mLeft, mRight);
position.offset(mLeft, mTop);
ViewParent parent = mParent;
while (parent instanceof View) {