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

Commit d4357ffd authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android Git Automerger
Browse files

am eb974d5a: Merge "resolved conflicts for merge of f6a04305 to mnc-dev" into mnc-dev

* commit 'eb974d5a':
  More inclusive rules for using outsets.
parents 23cfb64c eb974d5a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4093,7 +4093,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        // If the device has a chin (e.g. some watches), a dead area at the bottom of the screen we
        // need to provide information to the clients that want to pretend that you can draw there.
        if (isDefaultDisplay && (fl & WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0) {
        // We only want to apply outsets to certain types of windows. For example, we never want to
        // apply the outsets to floating dialogs, because they wouldn't make sense there.
        final boolean useOutsets = attrs.type == TYPE_WALLPAPER
                || (fl & (WindowManager.LayoutParams.FLAG_FULLSCREEN
                        | WindowManager.LayoutParams.FLAG_LAYOUT_IN_OVERSCAN)) != 0;
        if (isDefaultDisplay && useOutsets) {
            osf = mTmpOutsetFrame;
            osf.set(cf.left, cf.top, cf.right, cf.bottom);
            int outset = ScreenShapeHelper.getWindowOutsetBottomPx(mContext.getResources());