Merge "Protect against null drawable" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
85e35eb118
@@ -1214,7 +1214,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
|||||||
&& mLastOriginalBackgroundDrawable == mOriginalBackgroundDrawable) {
|
&& mLastOriginalBackgroundDrawable == mOriginalBackgroundDrawable) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mBackgroundInsets.equals(Insets.NONE)) {
|
if (mOriginalBackgroundDrawable == null || mBackgroundInsets.equals(Insets.NONE)) {
|
||||||
setBackground(mOriginalBackgroundDrawable);
|
setBackground(mOriginalBackgroundDrawable);
|
||||||
} else {
|
} else {
|
||||||
setBackground(new InsetDrawable(mOriginalBackgroundDrawable,
|
setBackground(new InsetDrawable(mOriginalBackgroundDrawable,
|
||||||
|
|||||||
Reference in New Issue
Block a user