Merge "Revert "Skip finishResize for non-exit animation if PIP is about to exit"" into sc-dev am: 05555262dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607395 Change-Id: I7dc1fcc92c39f94579d9ba66fd791944cabab9cb
This commit is contained in:
@@ -185,16 +185,8 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
|||||||
mDeferredAnimEndTransaction = tx;
|
mDeferredAnimEndTransaction = tx;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
finishResize(tx, destinationBounds, direction, animationType);
|
||||||
if (mState != State.EXITING_PIP || direction == TRANSITION_DIRECTION_LEAVE_PIP) {
|
sendOnPipTransitionFinished(direction);
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
if (direction == TRANSITION_DIRECTION_TO_PIP) {
|
if (direction == TRANSITION_DIRECTION_TO_PIP) {
|
||||||
// TODO (b//169221267): Add jank listener for transactions without buffer updates.
|
// TODO (b//169221267): Add jank listener for transactions without buffer updates.
|
||||||
//InteractionJankMonitor.getInstance().end(
|
//InteractionJankMonitor.getInstance().end(
|
||||||
|
|||||||
Reference in New Issue
Block a user