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

This commit is contained in:
TreeHugger Robot
2016-05-20 22:56:46 +00:00
committed by Android (Google) Code Review

View File

@@ -908,7 +908,12 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
setBackgroundDrawable(drawable); setBackgroundDrawable(drawable);
if (drawable != null) { if (drawable != null) {
mResizingBackgroundDrawable = drawable; mResizingBackgroundDrawable = drawable;
drawable.getPadding(mBackgroundPadding); } else {
mResizingBackgroundDrawable = getResizingBackgroundDrawable(
getContext(), 0, mWindow.mBackgroundFallbackResource);
}
if (mResizingBackgroundDrawable != null) {
mResizingBackgroundDrawable.getPadding(mBackgroundPadding);
} else { } else {
mBackgroundPadding.setEmpty(); mBackgroundPadding.setEmpty();
} }