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
This commit is contained in:
Winson Chung
2021-03-31 15:19:20 -07:00
parent 65da93d3fd
commit 4bd615ffa0

View File

@@ -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;