Merge "Merge "Correctly clear resizing drawable when nulling background." into nyc-dev am: a3ec065a43 am: fe25025c5c" into nyc-mr1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
abb81c5972
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user