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

Commit 82611b49 authored by Winson Chung's avatar Winson Chung
Browse files

Bump special windows layer adjustment

- Increase the special windows layer adjustment to account for windows boosted by an animation's
  z-ordering.

Bug: 63399929
Test: Launch PIP, launch Assistant, hit back and ensure that the dim
      layer draws under the PIP
Test: go/wm-smoke

Change-Id: I380db5b7a6b9fa707504251a48be139809afd96d
parent db9ae421
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import static android.view.Display.DEFAULT_DISPLAY;
import static android.view.WindowManager.LayoutParams.TYPE_DOCK_DIVIDER;
import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_LAYERS;
import static com.android.server.wm.WindowManagerDebugConfig.TAG_WM;
import static com.android.server.wm.WindowManagerService.TYPE_LAYER_OFFSET;
import static com.android.server.wm.WindowManagerService.WINDOW_LAYER_MULTIPLIER;

/**
@@ -198,7 +199,7 @@ class WindowLayersController {

    private void adjustSpecialWindows() {
        // The following adjustments are beyond the highest docked-affected layer
        int layer = mHighestDockedAffectedLayer +  WINDOW_LAYER_MULTIPLIER;
        int layer = mHighestDockedAffectedLayer +  TYPE_LAYER_OFFSET;

        // Adjust the docked stack windows and dock divider above only the windows that are affected
        // by the docked stack. When this happens, also boost the assistant window layers, otherwise