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

Commit 8dd46f7d authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

resolved conflicts for merge of 1ae66595 to master

Change-Id: I3ea98f0c6eaf3c9339ef00b6e5a8ae97c7b88655
parents 5d374418 1ae66595
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -405,7 +405,10 @@ public class TaskStack implements DimLayer.DimLayerUser {
            for (int appNdx = appWindowTokens.size() - 1; appNdx >= 0; --appNdx) {
                final WindowList appWindows = appWindowTokens.get(appNdx).allAppWindows;
                for (int winNdx = appWindows.size() - 1; winNdx >= 0; --winNdx) {
                    mService.removeWindowInnerLocked(appWindows.get(winNdx));
                    // We are in the middle of changing the state of displays/stacks/tasks. We need
                    // to finish that, before we let layout interfere with it.
                    mService.removeWindowInnerLocked(appWindows.get(winNdx),
                            false /* performLayout */);
                    doAnotherLayoutPass = true;
                }
            }
+10 −2
Original line number Diff line number Diff line
@@ -2177,6 +2177,10 @@ public class WindowManagerService extends IWindowManager.Stub
    }

    void removeWindowInnerLocked(WindowState win) {
        removeWindowInnerLocked(win, true);
    }

    void removeWindowInnerLocked(WindowState win, boolean performLayout) {
        if (win.mRemoved) {
            // Nothing to do.
            return;
@@ -2274,7 +2278,9 @@ public class WindowManagerService extends IWindowManager.Stub
                if (displayContent != null) {
                    displayContent.layoutNeeded = true;
                }
                if (performLayout) {
                    performLayoutAndPlaceSurfacesLocked();
                }
                if (win.mAppToken != null) {
                    win.mAppToken.updateReportedVisibilityLocked();
                }
@@ -4525,8 +4531,10 @@ public class WindowManagerService extends IWindowManager.Stub
    }

    public void removeStack(int stackId) {
        synchronized (mWindowMap) {
            mStackIdToStack.remove(stackId);
        }
    }

    public void removeTask(int taskId) {
        synchronized (mWindowMap) {