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

Skip to content
Commit e8f37591 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Notify transition ready for player before taking snapshot

So SnapshotController and shell's onTransitionReady can run in parallel.
That reduces the latency before starting the animator.

Theoretically, the binder transmission time of transition info is
usually enough to complete the snapshot. However, even if hardcoding
hundreds millisecond to delay the snapshot until the transition is
finished, the snapshot is still captured successfully, so it should be
safe to reorder.

Bug: 279437990
Bug: 297493149
Test: TransitionTests#testTransientLaunch
      KeyboardVisibilityControlTest
Test: Disable animation. Launch/back between different tasks.
      The valid snapshot of the closed task can still be shown in recent.
Change-Id: Id3cc1cc47412c098c8c8e8d63a09367772527400
parent 7b4ab317
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