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

Commit 2c183335 authored by Alan Viverette's avatar Alan Viverette
Browse files

Remove clipToOutline workaround for null backgrounds

BUG: 16566746
Change-Id: Icdf0d40b75c0fa9d972eb6300f51079e48fbe5fd
parent bcc48b6c
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1314,7 +1314,6 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            mBackgroundDrawable = drawable;
            if (mDecor != null) {
                mDecor.setWindowBackground(drawable);
                mDecor.setClipToOutline(drawable != null && mClipToOutline);
            }
        }
    }
@@ -3389,10 +3388,6 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            }
            mDecor.setWindowBackground(background);

            if (background != null) {
                mDecor.setClipToOutline(mClipToOutline);
            }

            final Drawable frame;
            if (mFrameResource != 0) {
                frame = getContext().getDrawable(mFrameResource);
@@ -3402,6 +3397,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            mDecor.setWindowFrame(frame);

            mDecor.setElevation(mElevation);
            mDecor.setClipToOutline(mClipToOutline);

            if (mTitle != null) {
                setTitle(mTitle);