summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2023-08-22 13:51:12 -0700
committer Vishnu Nair <vishnun@google.com> 2023-08-22 13:52:05 -0700
commit3468cd94064c4924e9c130726e3e7fca37ebbb53 (patch)
tree5aa2a60a1786b3d493c9a3c099f2e0ca411a7ae8
parent8a9733fc8d5b28b548363dde908eb342a2e62939 (diff)
[wm] schedule a traversal when animation ends
When a window animation runs, we boost the frame rate to max, overriding any framerate that the app sets. We were missing an update to window framerate which meant after a screen rotation, the app would be stuck at the max framerate. Fix this by scheduling a traversal when the animation ends. Bug: 284271661 Test: see steps in bug Change-Id: I9f0ff7153078d005a34db9c2d98bdbc9d36e9657
-rw-r--r--services/core/java/com/android/server/wm/TransitionController.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/TransitionController.java b/services/core/java/com/android/server/wm/TransitionController.java
index 48cca3291650..8d9690e45dc0 100644
--- a/services/core/java/com/android/server/wm/TransitionController.java
+++ b/services/core/java/com/android/server/wm/TransitionController.java
@@ -1146,6 +1146,7 @@ class TransitionController {
Transition.asyncTraceBegin("animating", 0x41bfaf1 /* hashcode of TAG */);
} else if (!animatingState && mAnimatingState) {
t.setEarlyWakeupEnd();
+ mAtm.mWindowManager.requestTraversal();
mSnapshotController.setPause(false);
mAnimatingState = false;
Transition.asyncTraceEnd(0x41bfaf1 /* hashcode of TAG */);