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

Commit 32724409 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

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

parents c4568caf 0a6d6154
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