am 1908cf9e: Merge "Fixing argument expectations of View.requestRectangleOnScreen" into jb-mr1-dev

* commit '1908cf9ec4cd9691f2e3228c4de74d11dab9073d':
  Fixing argument expectations of View.requestRectangleOnScreen
This commit is contained in:
Svetoslav Ganov
2012-09-25 15:48:08 -07:00
committed by Android Git Automerger

View File

@@ -4348,13 +4348,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* @return Whether any parent scrolled.
*/
public boolean requestRectangleOnScreen(Rect rectangle, boolean immediate) {
if (mAttachInfo == null) {
if (mParent == null) {
return false;
}
View child = this;
RectF position = mAttachInfo.mTmpTransformRect;
RectF position = (mAttachInfo != null) ? mAttachInfo.mTmpTransformRect : new RectF();
position.set(rectangle);
ViewParent parent = mParent;