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

Commit 3468cd94 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

[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
parent 8a9733fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */);