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

Commit 1e9c685d authored by Andrii Kulian's avatar Andrii Kulian Committed by Android (Google) Code Review
Browse files

Merge "Set correct bounds when docked stack is removed" into nyc-dev

parents a68fe1e4 41da89cd
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -2069,14 +2069,16 @@ public final class ActivityStackSupervisor implements DisplayListener {
                // static stacks need to be adjusted so they don't overlap with the docked stack.
                // We get the bounds to use from window manager which has been adjusted for any
                // screen controls and is also the same for all stacks.
                if (dockedBounds != null) {
                    mWindowManager.getStackDockedModeBounds(
                            HOME_STACK_ID, tempRect, true /* ignoreVisibility */);
                }
                for (int i = FIRST_STATIC_STACK_ID; i <= LAST_STATIC_STACK_ID; i++) {
                    if (StackId.isResizeableByDockedStack(i)) {
                        ActivityStack otherStack = getStack(i);
                        if (otherStack != null) {
                            resizeStackLocked(i, tempRect, tempOtherTaskBounds,
                                    tempOtherTaskInsetBounds, preserveWindows,
                            resizeStackLocked(i, dockedBounds != null ? tempRect : null,
                                    tempOtherTaskBounds, tempOtherTaskInsetBounds, preserveWindows,
                                    true /* allowResizeInDockedMode */);
                        }
                    }