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

Commit 168d5e4e authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "Check task.isResizeable() instead of the resize mode directly" into nyc-dev

parents 810252ad d545dce4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2186,7 +2186,7 @@ public final class ActivityStackSupervisor implements DisplayListener {

        final int resizeMode = task.mResizeMode;

        if (stackId == DOCKED_STACK_ID && resizeMode == RESIZE_MODE_UNRESIZEABLE) {
        if (stackId == DOCKED_STACK_ID && !task.isResizeable()) {
            // We don't allow moving a unresizeable task to the docked stack since the docked
            // stack is used for split-screen mode and will cause things like the docked divider to
            // show up. We instead leave the task in its current stack or move it to the fullscreen