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

Commit 169e3d0f authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Use rotation animation for visible wallpaper rotation" into sc-dev am: 34df2dab

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

Change-Id: I6a31bf2578e349b3a6d041a2c5d65fcc9aad8d83
parents 1f663a4b 34df2dab
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1562,6 +1562,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.
            return false;
        }
        final int rotation = rotationForActivityInDifferentOrientation(r);
        if (rotation == ROTATION_UNDEFINED) {
            // The display rotation won't be changed by current top activity. The client side