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

Commit b2f06400 authored by Louis Chang's avatar Louis Chang
Browse files

Fixes exception thrown while making non-root task always-on-top

The always-on-top was prevented to be set on a created-by-organizer
root-task via ActivityOptions in commit f3a8b7d6. So, it is now possible
to be set on a non-root task while its parent may not always be
DisplayArea.

Bug: 430687520
Test: wm presubmit
Flag: EXEMPT bugfix
Change-Id: I71804697b301714ab7a7e788b2de6de387e58a32
parent dbd7a5ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6228,7 +6228,7 @@ class Task extends TaskFragment {
        // cases, we can just request that the root task is put at top here.
        // Don't bother moving task to top if this task is force hidden and invisible to user.
        if (!isForceHidden()) {
            getDisplayArea().positionChildAt(POSITION_TOP, this, false /* includingParents */);
            getParent().positionChildAt(POSITION_TOP, this, false /* includingParents */);
        }
    }