Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 683ace12 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Allow to use fixed rotation if recents is animating" into sc-dev am:...

Merge "Allow to use fixed rotation if recents is animating" into sc-dev am: 58c7e949 am: f5e9c0b0

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

Change-Id: I2c657b2ed9a018ca6c2dacac6f50c848993f7e42
parents 8cc6950f f5e9c0b0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1623,8 +1623,10 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
            // If the transition has not started yet, the activity must be the top.
            return false;
        }
        if (mLastWallpaperVisible && r.windowsCanBeWallpaperTarget()) {
            // Use normal rotation animation for orientation change of visible wallpaper.
        if (mLastWallpaperVisible && r.windowsCanBeWallpaperTarget()
                && mFixedRotationTransitionListener.mAnimatingRecents == null) {
            // Use normal rotation animation for orientation change of visible wallpaper if recents
            // animation is not running (it may be swiping to home).
            return false;
        }
        final int rotation = rotationForActivityInDifferentOrientation(r);