summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-07-14 14:45:04 +0000
committer Riddle Hsu <riddlehsu@google.com> 2023-07-18 16:22:28 +0000
commitae941d4ec0e52769de2417dea2e6a30b655c951c (patch)
tree2335ada06a123e8de3170c158ac49735518c42c2 /api/api.go
parent39759a9ed108236c127fe29af7a47b69ad29bc38 (diff)
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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions