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

Skip to content
Commit f3900f1b authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Fix predictive back animations jump at beginning

We should not call reset() in BackProgressAnimator#onBackStarted, to prevent progress jumps at the beginning of the animation. The reason for the jumps is that inside `reset()` `skipToEnd()` is called. This causes a SpringAnimation-internal flag `mEndRequested` to be flipped to true, which in turn has the effect that on the next frame the spring is immediately set to the requested position. However, by that time, the progress may already have moved a substantial amount, which causes the animation jumps.

Bug: 341257287
Flag: com.android.window.flags.predictive_back_system_anims NEXTFOOD
Test: Manual, i.e. comparing screen recordings and analysing logcat
Change-Id: Ic0b8926d60a0d37a5ead51e130159d7e3219801e
parent 269cab6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment