Merge "Skip display rotation animation for non-change type transition" into udc-qpr-dev

This commit is contained in:
Riddle Hsu
2023-07-19 12:11:06 +00:00
committed by Android (Google) Code Review

View File

@@ -407,7 +407,7 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
change.getEndAbsBounds().width(), change.getEndAbsBounds().height());
}
// Rotation change of independent non display window container.
if (change.getParent() == null
if (change.getParent() == null && !change.hasFlags(FLAG_IS_DISPLAY)
&& change.getStartRotation() != change.getEndRotation()) {
startRotationAnimation(startTransaction, change, info,
ROTATION_ANIMATION_ROTATE, animations, onAnimFinish);