Merge "Do not use seamless rotation for multi-window" into tm-qpr-dev am: 61ba8c9da7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19043628

Change-Id: Ie6f92c029cf97b22d0326dbe693217229ad33b95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Riddle Hsu
2022-06-27 12:02:40 +00:00
committed by Automerger Merge Worker

View File

@@ -620,7 +620,8 @@ public class DisplayRotation {
// We only enable seamless rotation if the top window has requested it and is in the // We only enable seamless rotation if the top window has requested it and is in the
// fullscreen opaque state. Seamless rotation requires freezing various Surface states and // fullscreen opaque state. Seamless rotation requires freezing various Surface states and
// won't work well with animations, so we disable it in the animation case for now. // won't work well with animations, so we disable it in the animation case for now.
if (w.getAttrs().rotationAnimation != ROTATION_ANIMATION_SEAMLESS || w.isAnimatingLw()) { if (w.getAttrs().rotationAnimation != ROTATION_ANIMATION_SEAMLESS || w.inMultiWindowMode()
|| w.isAnimatingLw()) {
return false; return false;
} }