summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2025-01-20 02:06:08 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-01-20 02:06:08 -0800
commit0f81346438f327f7abccf456e81e8630f0583909 (patch)
tree847eeebdf792d79239b5edbdc77cadd745ac6278
parentc6b5d1bc7c08c4cb9ef858bd2d8d3d721420eb33 (diff)
parente6da6c1eb9b7ca2d79e8d0355030a8c0c97ce762 (diff)
Merge "Remove imprecise condition of orientation update by translucent activity" into main
-rw-r--r--services/core/java/com/android/server/wm/DisplayContent.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java
index 60c80a31f637..1bbae7f17308 100644
--- a/services/core/java/com/android/server/wm/DisplayContent.java
+++ b/services/core/java/com/android/server/wm/DisplayContent.java
@@ -6962,11 +6962,11 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
}
return;
}
+ if (!r.isVisible()) {
+ // Let the opening activity update orientation.
+ return;
+ }
if (mFixedRotationLaunchingApp.hasFixedRotationTransform(r)) {
- if (!r.isVisible()) {
- // Let the opening activity update orientation.
- return;
- }
if (mFixedRotationLaunchingApp.hasAnimatingFixedRotationTransition()) {
// Waiting until all of the associated activities have done animation, or the
// orientation would be updated too early and cause flickering.
@@ -6974,11 +6974,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
}
} else {
// Check to skip updating display orientation by a non-top activity.
- if ((!r.isVisible() || !mFixedRotationLaunchingApp.fillsParent())
- // When closing a translucent task A (r.fillsParent() is false) to a
- // visible task B, because only A has visibility change, there is only A's
- // transition callback. Then it still needs to update orientation for B.
- && r.fillsParent()) {
+ if (!mFixedRotationLaunchingApp.fillsParent()) {
return;
}
if (r.inTransition()) {