Merge "Extend pip dismiss overlay to under cutout" into sc-dev

This commit is contained in:
Winson Chung
2021-04-01 05:42:48 +00:00
committed by Android (Google) Code Review

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;