Adds a new listener to propagate taskInfo changes when when change.mode is TRANSIT_CHANGE

To address an issue with task updates in Desktop Windowing not reflecting correctly in Overview when transitioning to FullScreen, notify listeners of task transit_change events. This will ensure the taskInfo in TopTaskTracker is updated when a task changes from freeform to fullscreen.

Fix: 356355595
Flag: com.android.window.flags.enable_task_stack_observer_in_shell
Test: Manual
Test: TaskStackTransitionObserverTest
Change-Id: I0e3f557098051069b2f1f7153aadbbce099197c0
4 files changed