Merge "Protect against null drawable" into qt-dev

am: 85e35eb118

Change-Id: I77df350f236f1c623d41ff777e3ceaef26ee09ef
This commit is contained in:
Jorim Jaggi
2019-04-08 11:05:59 -07:00
committed by android-build-merger

View File

@@ -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,