am aae329ef: Merge "Don\'t apply transformation fudge when not rotating." into jb-mr1.1-dev

* commit 'aae329ef0f68e30897faef55c86548dab0eadf37':
  Don't apply transformation fudge when not rotating.
This commit is contained in:
Dianne Hackborn
2012-11-29 17:56:58 -08:00
committed by Android Git Automerger
2 changed files with 5 additions and 1 deletions

View File

@@ -668,6 +668,10 @@ class ScreenRotationAnimation {
return hasAnimations() || (TWO_PHASE_ANIMATION && mFinishAnimReady);
}
public boolean isRotating() {
return mCurRotation != mOriginalRotation;
}
private boolean hasAnimations() {
return (TWO_PHASE_ANIMATION &&
(mStartEnterAnimation != null || mStartExitAnimation != null

View File

@@ -876,7 +876,7 @@ class WindowStateAnimator {
final Matrix tmpMatrix = mWin.mTmpMatrix;
// Compute the desired transformation.
if (screenAnimation) {
if (screenAnimation && screenRotationAnimation.isRotating()) {
// If we are doing a screen animation, the global rotation
// applied to windows can result in windows that are carefully
// aligned with each other to slightly separate, allowing you