Merge "Fix window animation flash issue" am: 1a02a26838 am: bb5f6db56a

am: 63993f20a4

Change-Id: I4b9d03bd48c6fb4a676c8ef3746fd757eb1f3943
This commit is contained in:
Wale Ogunwale
2016-10-03 23:29:46 +00:00
committed by android-build-merger

View File

@@ -1047,7 +1047,7 @@ class WindowStateAnimator {
mDtDy = tmpFloats[Matrix.MSCALE_Y];
float x = tmpFloats[Matrix.MTRANS_X];
float y = tmpFloats[Matrix.MTRANS_Y];
mWin.mShownPosition.set((int) x, (int) y);
mWin.mShownPosition.set(Math.round(x), Math.round(y));
// Now set the alpha... but because our current hardware
// can't do alpha transformation on a non-opaque surface,
@@ -1140,7 +1140,7 @@ class WindowStateAnimator {
mDtDy = tmpFloats[Matrix.MSCALE_Y];
float x = tmpFloats[Matrix.MTRANS_X];
float y = tmpFloats[Matrix.MTRANS_Y];
mWin.mShownPosition.set((int) x, (int) y);
mWin.mShownPosition.set(Math.round(x), Math.round(y));
mShownAlpha = mAlpha;
} else {