diff options
| author | 2021-04-01 05:42:48 +0000 | |
|---|---|---|
| committer | 2021-04-01 05:42:48 +0000 | |
| commit | 5cd74d3d26e360bdcee5569255d7d9973b6a58ed (patch) | |
| tree | 3f9805f642b8bc646328fedf5f450907f1789978 | |
| parent | 725fd986ff1dc06c9909912e3685b49c7e51503a (diff) | |
| parent | 4bd615ffa0f1ad5ee0ef2920790f3262e7b5aa8d (diff) | |
Merge "Extend pip dismiss overlay to under cutout" into sc-dev
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipDismissTargetHandler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipDismissTargetHandler.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipDismissTargetHandler.java index 99a663523d61..c26b686f91fb 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipDismissTargetHandler.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipDismissTargetHandler.java @@ -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; |