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

Commit 969f2f80 authored by Evan Rosky's avatar Evan Rosky
Browse files

Remove-Task in WCT should imply lifecycle change.

Seems to be an oversight, removing tasks definitely
effects lifecycle(s), so add it to effects.

Bug: 335453058
Test: Remove a task in WCT and see that opening is included in transit
Change-Id: I092a7b12191193fb9aef05c713f821390e0f56e9
parent 66f1b323
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1015,7 +1015,9 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
                    break;
                }
                final Task task = wc.asTask();

                if (task.isVisibleRequested() || task.isVisible()) {
                    effects |= TRANSACT_EFFECTS_LIFECYCLE;
                }
                if (task.isLeafTask()) {
                    mService.mTaskSupervisor
                            .removeTask(task, true, REMOVE_FROM_RECENTS, "remove-task"