diff options
| author | 2024-03-21 15:53:49 +0800 | |
|---|---|---|
| committer | 2024-05-28 02:56:46 +0000 | |
| commit | 150c555718b8449258c2c11cc6be82f771147559 (patch) | |
| tree | 6dc55110908802682bcfc4e02a67461d685d2075 /libs/input/PointerController.cpp | |
| parent | 799b149671346e6d86fbe366c9aed516c1cbbb94 (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
Merged-In: I46d8e26110ebefea74e5dd06c85c003b12693416
Change-Id: I46d8e26110ebefea74e5dd06c85c003b12693416
(cherry picked from commit 7079ba9aad0012ae53cb689dc23740b99ed27d15)
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions