Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf2c11dc authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Clean up invisible tasks in task repo when they are removed

Removing an invisible task is an invisible->invisible change,
so no shell transition runs for this, and DesktopRespository misses
cleaning up task data, which could lead to DesktopTasksController
incorrectly trying to restore the tasks when the desk is
reactivated next time.

This change adds clean-up logic to
RootTaskDesksOrganizer#onTaskVanished() to handle this case.

Flag: com.android.window.flags.enable_desktop_invisible_task_removal_cleanup_bugfix
Bug: 427869488
Test: RootTaskDesksOrganizerTest#testOnTaskVanished_removesChildTask_invokesNonTransitionTaskClosing
Test: DesktopTaskChangeListenerTest#onNonTransitionTaskClosing_invisibleFreeformTask_removesTaskFromRepo
Change-Id: Ic063d287d35a80b7b2abebfa831702232166cf73
parent 1cf0749b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment