Merge "Don't resize PiP on aspect ratio change if nothing changed." into tm-qpr-dev

This commit is contained in:
Ben Lin
2022-08-03 20:16:29 +00:00
committed by Android (Google) Code Review

View File

@@ -495,14 +495,15 @@ public class PipController implements PipTransitionController.PipTransitionCallb
mPipBoundsState.getBounds(), mPipBoundsState.getBounds(),
mPipBoundsState.getAspectRatio()); mPipBoundsState.getAspectRatio());
Objects.requireNonNull(destinationBounds, "Missing destination bounds"); Objects.requireNonNull(destinationBounds, "Missing destination bounds");
mPipTaskOrganizer.scheduleAnimateResizePip(destinationBounds, if (!destinationBounds.equals(mPipBoundsState.getBounds())) {
mEnterAnimationDuration, mPipTaskOrganizer.scheduleAnimateResizePip(destinationBounds,
null /* updateBoundsCallback */); mEnterAnimationDuration,
null /* updateBoundsCallback */);
mTouchHandler.onAspectRatioChanged(); mTouchHandler.onAspectRatioChanged();
updateMovementBounds(null /* toBounds */, false /* fromRotation */, updateMovementBounds(null /* toBounds */, false /* fromRotation */,
false /* fromImeAdjustment */, false /* fromShelfAdjustment */, false /* fromImeAdjustment */, false /* fromShelfAdjustment */,
null /* windowContainerTransaction */); null /* windowContainerTransaction */);
}
} }
@Override @Override