Ensure we pass correct values into the next transition start bounds.

Bug: 30106779
Change-Id: I081beb1dc437516e0a6361fce2c4c4512f4d5f26
This commit is contained in:
Winson
2016-07-13 12:29:48 -07:00
committed by Winson Chung
parent ad2bf54fda
commit 4c3fecd31f

View File

@@ -604,7 +604,7 @@ public class AppTransition implements Dump {
float scaleH = mTmpRect.height() / (float) appHeight;
Animation scale = new ScaleAnimation(scaleW, 1, scaleH, 1,
computePivot(mTmpRect.left, scaleW),
computePivot(mTmpRect.right, scaleH));
computePivot(mTmpRect.top, scaleH));
scale.setInterpolator(mDecelerateInterpolator);
Animation alpha = new AlphaAnimation(0, 1);
@@ -1615,8 +1615,7 @@ public class AppTransition implements Dump {
if (isTransitionSet()) {
clear();
mNextAppTransitionType = NEXT_TRANSIT_TYPE_SCALE_UP;
putDefaultNextAppTransitionCoordinates(startX, startY, startX + startWidth,
startY + startHeight, null);
putDefaultNextAppTransitionCoordinates(startX, startY, startWidth, startHeight, null);
postAnimationCallback();
}
}