diff options
| author | 2024-03-21 15:53:49 +0800 | |
|---|---|---|
| committer | 2024-03-25 17:47:50 +0800 | |
| commit | 7079ba9aad0012ae53cb689dc23740b99ed27d15 (patch) | |
| tree | df731375ae54ce1b908a743a982e823772e7da20 /libs/androidfw/ZipFileRO.cpp | |
| parent | 642bdb48a81b682be3307e9066786bdfc63b0e84 (diff) | |
Allow to collect moving back task in open transition
Simulation:
 Task A starts(NEW_TASK) Task B, finishes
 Task B starts(NEW_TASK) Task C
   Task B calls moveTaskToBack in onPause
 Task C (declare as translucent and sleep 200ms in
         onCreate to delay transition)
   starts(NEW_TASK) Task B -> attempt to move task B to front
   finishes
Because the initial open transition may be done until the last
step, then moveTaskToBack for B will run after the last step.
Then expect B should be on top but the result is on home screen
because A and C are finished, and B is moved to back.
This change is kinda a workaround to mitigate the case of
deferred move-to-back. Because it is regular to have closing
targets in an open transition, the moving task can run with
the collecting transition directly.
Fix: 325645759
Test: atest TransitionTests#testDeferredMoveTaskToBack
Change-Id: I46d8e26110ebefea74e5dd06c85c003b12693416
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions