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

Commit fe25025c authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge "Correctly clear resizing drawable when nulling background." into nyc-dev

am: a3ec065a

* commit 'a3ec065a':
  Correctly clear resizing drawable when nulling background.

Change-Id: Ifb02cc95efc8b164ab8ee63fa9d83bae3172da23
parents a1fa294d a3ec065a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -908,7 +908,12 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
            setBackgroundDrawable(drawable);
            if (drawable != null) {
                mResizingBackgroundDrawable = drawable;
                drawable.getPadding(mBackgroundPadding);
            } else {
                mResizingBackgroundDrawable = getResizingBackgroundDrawable(
                        getContext(), 0, mWindow.mBackgroundFallbackResource);
            }
            if (mResizingBackgroundDrawable != null) {
                mResizingBackgroundDrawable.getPadding(mBackgroundPadding);
            } else {
                mBackgroundPadding.setEmpty();
            }