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