Skip to content
Commit 235e6594 authored by Louis Chang's avatar Louis Chang
Browse files

Ensure listeners got notified whenever positioned a task to front

Task listeners not always get notified when a task move to front
because the event was only scheduled in Task#moveTaskToFront().
Now we are doing that while positioning tasks.

Also moved #updateTaskMovement to Task#positionChildAt() vs.
invoked in several places.

Note that the intermediate tasks-to-front changes of a certain
procedure would all be sent to listeners. For example, now the
#onTaskMovedToFront would be called twice when starting a task
from recents, because the home task was moved to front before
moving the target task to top.

Bug: 134632511
Test: atest TaskStackChangedListenerTest
Change-Id: I6dbb3d4af18ecf9949ab26ce8b1f60d1ae300852
parent 729b60c0
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