Loading core/java/android/transition/ChangeBounds.java +8 −8 Original line number Original line Diff line number Diff line Loading @@ -472,9 +472,9 @@ public class ChangeBounds extends Transition { private int mTop; private int mTop; private int mRight; private int mRight; private int mBottom; private int mBottom; private boolean mIsTopLeftSet; private boolean mIsBottomRightSet; private View mView; private View mView; private int mTopLeftCalls; private int mBottomRightCalls; public ViewBounds(View view) { public ViewBounds(View view) { mView = view; mView = view; Loading @@ -483,8 +483,8 @@ public class ChangeBounds extends Transition { public void setTopLeft(PointF topLeft) { public void setTopLeft(PointF topLeft) { mLeft = Math.round(topLeft.x); mLeft = Math.round(topLeft.x); mTop = Math.round(topLeft.y); mTop = Math.round(topLeft.y); mIsTopLeftSet = true; mTopLeftCalls++; if (mIsBottomRightSet) { if (mTopLeftCalls == mBottomRightCalls) { setLeftTopRightBottom(); setLeftTopRightBottom(); } } } } Loading @@ -492,16 +492,16 @@ public class ChangeBounds extends Transition { public void setBottomRight(PointF bottomRight) { public void setBottomRight(PointF bottomRight) { mRight = Math.round(bottomRight.x); mRight = Math.round(bottomRight.x); mBottom = Math.round(bottomRight.y); mBottom = Math.round(bottomRight.y); mIsBottomRightSet = true; mBottomRightCalls++; if (mIsTopLeftSet) { if (mTopLeftCalls == mBottomRightCalls) { setLeftTopRightBottom(); setLeftTopRightBottom(); } } } } private void setLeftTopRightBottom() { private void setLeftTopRightBottom() { mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); mIsTopLeftSet = false; mTopLeftCalls = 0; mIsBottomRightSet = false; mBottomRightCalls = 0; } } } } } } Loading
core/java/android/transition/ChangeBounds.java +8 −8 Original line number Original line Diff line number Diff line Loading @@ -472,9 +472,9 @@ public class ChangeBounds extends Transition { private int mTop; private int mTop; private int mRight; private int mRight; private int mBottom; private int mBottom; private boolean mIsTopLeftSet; private boolean mIsBottomRightSet; private View mView; private View mView; private int mTopLeftCalls; private int mBottomRightCalls; public ViewBounds(View view) { public ViewBounds(View view) { mView = view; mView = view; Loading @@ -483,8 +483,8 @@ public class ChangeBounds extends Transition { public void setTopLeft(PointF topLeft) { public void setTopLeft(PointF topLeft) { mLeft = Math.round(topLeft.x); mLeft = Math.round(topLeft.x); mTop = Math.round(topLeft.y); mTop = Math.round(topLeft.y); mIsTopLeftSet = true; mTopLeftCalls++; if (mIsBottomRightSet) { if (mTopLeftCalls == mBottomRightCalls) { setLeftTopRightBottom(); setLeftTopRightBottom(); } } } } Loading @@ -492,16 +492,16 @@ public class ChangeBounds extends Transition { public void setBottomRight(PointF bottomRight) { public void setBottomRight(PointF bottomRight) { mRight = Math.round(bottomRight.x); mRight = Math.round(bottomRight.x); mBottom = Math.round(bottomRight.y); mBottom = Math.round(bottomRight.y); mIsBottomRightSet = true; mBottomRightCalls++; if (mIsTopLeftSet) { if (mTopLeftCalls == mBottomRightCalls) { setLeftTopRightBottom(); setLeftTopRightBottom(); } } } } private void setLeftTopRightBottom() { private void setLeftTopRightBottom() { mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); mIsTopLeftSet = false; mTopLeftCalls = 0; mIsBottomRightSet = false; mBottomRightCalls = 0; } } } } } }