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

Commit 915cba93 authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Extend pip dismiss overlay to under cutout" into sc-dev am: 5cd74d3d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14056110

Change-Id: I35c2ab8dddd040a643e1ba9a2c62054ca11af042
parents 0f9efd29 5cd74d3d
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;