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

Commit 79f1b594 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by android-build-merger
Browse files

Merge "Don't clear source bounds when set to null during an animation." into qt-dev am: a6ef44ce

am: af994034

Change-Id: Ifcbfb721db814b8dc8d38475daceec1f4934dbcf
parents 10f1137b af994034
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -319,7 +319,8 @@ public class TaskStack extends WindowContainer<Task> implements
     * Sets the bounds animation target bounds ahead of an animation.  This can't currently be done
     * in onAnimationStart() since that is started on the UiThread.
     */
    void setAnimationFinalBounds(Rect sourceHintBounds, Rect destBounds, boolean toFullscreen) {
    private void setAnimationFinalBounds(Rect sourceHintBounds, Rect destBounds,
            boolean toFullscreen) {
        mBoundsAnimatingRequested = true;
        mBoundsAnimatingToFullscreen = toFullscreen;
        if (destBounds != null) {
@@ -329,7 +330,11 @@ public class TaskStack extends WindowContainer<Task> implements
        }
        if (sourceHintBounds != null) {
            mBoundsAnimationSourceHintBounds.set(sourceHintBounds);
        } else {
        } else if (!mBoundsAnimating) {
            // If the bounds are already animating, we don't want to reset the source hint. This is
            // because the source hint is sent when starting the animation from the client that
            // requested to enter pip. Other requests can adjust the pip bounds during an animation,
            // but could accidentally reset the source hint bounds.
            mBoundsAnimationSourceHintBounds.setEmpty();
        }