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

Commit cfb51ea5 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...

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

Change-Id: Ifeb24eb6dd5910458d17ef308a624353bf25ac65
parents 8203bc2b 79f1b594
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();
        }