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

Commit 05ea960d authored by wilsonshih's avatar wilsonshih
Browse files

Fix task cannot exit split if the app is request for moveTaskToBack

Regression from aosp/3304112.
Use #isDescendantOf to check the hierarchy relationship.

Flag: EXEMPT bugfix
Bug: 373542340
Test: follow issue steps.
Change-Id: Id0e9029484e040458d291620c03d263696edf978
parent 93a6b69a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5807,9 +5807,9 @@ class Task extends TaskFragment {
    }

    private boolean canMoveTaskToBack(Task task) {
        // Checks whether a task is a child of this task because it can be reparetned when
        // Checks whether a task is a child of this task because it can be reparented when
        // transition is deferred.
        if (task != this && task.getParent() != this) {
        if (task != this && !task.isDescendantOf(this)) {
            return false;
        }