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

am: 89770ebf62

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

Change-Id: Ie1347dd9d19c15b8e42611268b3c92e1ff1e4738
This commit is contained in:
Robert Carr
2016-05-20 23:08:19 +00:00
committed by android-build-merger

View File

@@ -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();
}