Revert "Skip finishResize for non-exit animation if PIP is about to exit"

This reverts commit fa915cb52c.

Reason for revert: b/188455492

Bug: 188455492
Change-Id: Ie18a8cd234a8ecf5a7fc0d6c5cdf05f158f3a7e6
This commit is contained in:
Jorge Gil
2021-05-17 23:06:23 +00:00
committed by Hongwei Wang
parent fa915cb52c
commit 66548b1f7a

View File

@@ -184,16 +184,8 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
mDeferredAnimEndTransaction = tx;
return;
}
if (mState != State.EXITING_PIP || direction == TRANSITION_DIRECTION_LEAVE_PIP) {
// Finish resize as long as we're not exiting PIP, or, if we are, only if this is
// the end of the leave PIP animation.
// This is necessary in case there was a resize animation ongoing when exit PIP
// started, in which case the first resize will be skipped to let the exit
// operation handle the final resize out of PIP mode. See b/185306679.
finishResize(tx, destinationBounds, direction, animationType);
sendOnPipTransitionFinished(direction);
}
finishResize(tx, destinationBounds, direction, animationType);
sendOnPipTransitionFinished(direction);
if (direction == TRANSITION_DIRECTION_TO_PIP) {
// TODO (b//169221267): Add jank listener for transactions without buffer updates.
//InteractionJankMonitor.getInstance().end(