diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java index 206f67ec6751e..8800a9e2d4792 100644 --- a/services/core/java/com/android/server/wm/DisplayContent.java +++ b/services/core/java/com/android/server/wm/DisplayContent.java @@ -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