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

Commit 13801aec authored by Shai Barack's avatar Shai Barack
Browse files

Improve View scrollbar fade scheduling efficiency

When rescheduling a scrollbar fade animation, we only ever postpone the animation.
Take advantage of this by not bothering to remove and re-post scheduled animation.
Rather, let an already-scheduled animation happen at the elapsed time, and re-post itself
to a future time if the scheduled animation start time had since been updated.

This fixes an issue where many View invalidations would cause the same animation to be
cancelled and re-issued.
See the referenced bug for evidence and impact analysis.

Fixes: 419083356
Bug: 415954362
Flag: EXEMPT bugfix
Change-Id: If4bf8664adcc0641209ec5bb849bf7db75ceb347
parent 3da4a3ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment