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

Commit 817ef323 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "Ensure we leave space between layers in docked stack." into nyc-dev

parents 2f1eb933 6412d755
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -191,17 +191,13 @@ public class WindowLayersController {
    }

    private void adjustSpecialWindows() {
        int layer = mHighestApplicationLayer + 1;
        int layer = mHighestApplicationLayer + WINDOW_LAYER_MULTIPLIER;
        // For pinned and docked stack window, we want to make them above other windows also when
        // these windows are animating.
        while (!mDockedWindows.isEmpty()) {
            layer = assignAndIncreaseLayerIfNeeded(mDockedWindows.remove(), layer);
        }

        // Leave some space here so the dim layer while dismissing docked/fullscreen stack has space
        // below the divider but above the app windows. It needs to be below the divider in because
        // the divider sometimes overlaps the app windows.
        layer++;
        layer = assignAndIncreaseLayerIfNeeded(mDockDivider, layer);

        // If we have a dock divider ensure the Input Method is above it.
@@ -224,7 +220,8 @@ public class WindowLayersController {
    private int assignAndIncreaseLayerIfNeeded(WindowState win, int layer) {
        if (win != null) {
            assignAnimLayer(win, layer);
            layer++;
            // Make sure we leave space inbetween normal windows for dims and such.
            layer += WINDOW_LAYER_MULTIPLIER;
        }
        return layer;
    }