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

Commit 41da89cd authored by Andrii Kulian's avatar Andrii Kulian
Browse files

Set correct bounds when docked stack is removed

Set bounds to null when docked stack is removed and other stacks are
resized to occupy whole display area. It ensures that stacks will have
correct fullscreen status.

Bug: 27857485
Change-Id: Ifbb8de54e6e5af3da1266b60d53656e4278fb75d
parent 3054d010
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 */);
                        }
                    }