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

Commit 1d748402 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge "Correct exiting pip animation state." into pi-dev am: 87b4c772

am: be9d3aa1

Change-Id: I3f96613cf84518e6193c435e764e4b225e7df195
parents 94a1c496 be9d3aa1
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -225,6 +225,11 @@ class WindowStateAnimator {
    // case we need to give the client a new Surface if it lays back out to a visible state.
    boolean mChildrenDetached = false;

    // Set to true after the first frame of the Pinned stack animation
    // and reset after the last to ensure we only reset mForceScaleUntilResize
    // once per animation.
    boolean mPipAnimationStarted = false;

    WindowStateAnimator(final WindowState win) {
        final WindowManagerService service = win.mService;

@@ -983,8 +988,13 @@ class WindowStateAnimator {
            // As we are in SCALING_MODE_SCALE_TO_WINDOW, SurfaceFlinger will
            // then take over the scaling until the new buffer arrives, and things
            // will be seamless.
            if (mPipAnimationStarted == false) {
                mForceScaleUntilResize = true;
                mPipAnimationStarted = true;
            }
        } else {
            mPipAnimationStarted = false;

            if (!w.mSeamlesslyRotated) {
                mSurfaceController.setPositionInTransaction(mXOffset, mYOffset, recoveringMemory);
            }