Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38cb84fd authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Reverting min scale in the previous animation changes."

parents 908e71ed 108b0607
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -3135,11 +3135,8 @@ public class WindowManagerService extends IWindowManager.Stub
        }
        if (enter) {
            // Entering app zooms out from the center of the initial rect.
            final float minScale = 0.1f;
            float scaleW = minScale +
                    ((1f - minScale) * mNextAppTransitionStartWidth / (float) mAppDisplayWidth);
            float scaleH = minScale +
                    ((1f - minScale) * mNextAppTransitionStartHeight / (float) mAppDisplayHeight);
            float scaleW = mNextAppTransitionStartWidth / (float) mAppDisplayWidth;
            float scaleH = mNextAppTransitionStartHeight / (float) mAppDisplayHeight;
            Animation scale = new ScaleAnimation(scaleW, 1, scaleH, 1,
                    computePivot(mNextAppTransitionStartX, scaleW),
                    computePivot(mNextAppTransitionStartY, scaleH));