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

Commit 55676149 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "PiP: Animate resize even if the bounds are the same." into...

Merge "Merge "PiP: Animate resize even if the bounds are the same." into rvc-dev am: 32724409 am: 9c1a5949 am: 16a61085" into rvc-qpr-dev-plus-aosp am: 934518d8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11856229

Change-Id: Ic1ee65c82b602eb756e8195e2abb2ee0b3dd2626
parents 46890a8c 934518d8
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -491,11 +491,12 @@ public class PipMotionHelper implements PipAppOpsListener.Callback,
            Log.d(TAG, "resizeAndAnimatePipUnchecked: toBounds=" + toBounds
                    + " duration=" + duration + " callers=\n" + Debug.getCallers(5, "    "));
        }
        if (!toBounds.equals(mBounds)) {

        // Intentionally resize here even if the current bounds match the destination bounds.
        // This is so all the proper callbacks are performed.
        mPipTaskOrganizer.scheduleAnimateResizePip(toBounds, duration, mUpdateBoundsCallback);
        setAnimatingToBounds(toBounds);
    }
    }

    /**
     * Returns a MagnetizedObject wrapper for PIP's animated bounds. This is provided to the