Merge "Fix window transformation related issue" am: 8760e60da5 am: 1200cfb48d

am: a4a4cfc8f5

Change-Id: Ib6a4dcb09317891decacff94340ac8b015b8db74
This commit is contained in:
Jorim Jaggi
2016-12-27 16:37:50 +00:00
committed by android-build-merger

View File

@@ -1013,15 +1013,10 @@ class WindowStateAnimator {
if (attachedTransformation != null) {
tmpMatrix.postConcat(attachedTransformation.getMatrix());
}
tmpMatrix.postTranslate(frame.left + mWin.mXOffset, frame.top + mWin.mYOffset);
if (appTransformation != null) {
tmpMatrix.postConcat(appTransformation.getMatrix());
}
// The translation that applies the position of the window needs to be applied at the
// end in case that other translations include scaling. Otherwise the scaling will
// affect this translation. But it needs to be set before the screen rotation animation
// so the pivot point is at the center of the screen for all windows.
tmpMatrix.postTranslate(frame.left + mWin.mXOffset, frame.top + mWin.mYOffset);
if (screenAnimation) {
tmpMatrix.postConcat(screenRotationAnimation.getEnterTransformation().getMatrix());
}