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

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

Pause transient hide activities before resuming next

This aligns the same lifecycle order as legacy transition:
When using recents or gesture navigation to switch tasks,
pause current -> resume next -> pause recents.

Previously, the order with shell transition is:
pause recent -> resume next -> pause current.
Because isInTransientHide will keep current visible until the
transition is finished.

So this change adds a method isTransientVisible to detect if
the transient (recents) activity is occluded by other task,
then report invisible for the transient-hide activities.

Bug: 290550081
Test: atest TransitionTests#testIsTransientVisible
Change-Id: I15c32fa4fa06f175e0cfd430dbc5ae806c599e52
parent 39759a9e
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