summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-08-11 03:52:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-11 03:52:05 +0000
commit11d2126532cf6f4e2ba00523e439d2cd6998ebee (patch)
tree3d013fd204fc43488226bd5477e372bc0dff8c45
parent747d072400c05fc2f206241ae56c133089dba2ec (diff)
parent58c7e9499c1b05c311eb03308a084137c44012f3 (diff)
Merge "Allow to use fixed rotation if recents is animating" into sc-dev am: 58c7e9499c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15501963 Change-Id: I320ac336964596f0af62f6bbc1925d6a7d719f90
-rw-r--r--services/core/java/com/android/server/wm/DisplayContent.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java
index 1b799dfbdaab..dbc1116ad389 100644
--- a/services/core/java/com/android/server/wm/DisplayContent.java
+++ b/services/core/java/com/android/server/wm/DisplayContent.java
@@ -1593,8 +1593,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);