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

Commit 4bd615ff authored by Winson Chung's avatar Winson Chung
Browse files

Extend pip dismiss overlay to under cutout

Bug: 184196634
Test: Enable cutout, move pip and ensure the dismiss scrim ends under
      the cutout in landscape
Change-Id: I43003e6acf6b100597080898b162018823b203c5
parent 65da93d3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.wm.shell.pip.phone;

import static android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.PixelFormat;
@@ -242,6 +244,7 @@ public class PipDismissTargetHandler {

        lp.setTitle("pip-dismiss-overlay");
        lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
        lp.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
        lp.setFitInsetsTypes(0 /* types */);

        return lp;