Merge "Do not move PiP upon Display change during exit" into sc-dev

This commit is contained in:
Hongwei Wang
2021-05-19 03:27:00 +00:00
committed by Android (Google) Code Review

View File

@@ -450,7 +450,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
null /* windowContainerTransaction */);
};
if (saveRestoreSnapFraction) {
if (mPipTaskOrganizer.isInPip() && saveRestoreSnapFraction) {
// Calculate the snap fraction of the current stack along the old movement bounds
final PipSnapAlgorithm pipSnapAlgorithm = mPipBoundsAlgorithm.getSnapAlgorithm();
final Rect postChangeStackBounds = new Rect(mPipBoundsState.getBounds());