Fix crash if drawable doesn't have constant state
am: 92d0602a7c
Change-Id: I8ab088ad588eac8baa674d551201713562d973ef
This commit is contained in:
@@ -110,12 +110,15 @@ public class BackdropFrameRenderer extends Thread implements Choreographer.Frame
|
||||
int statusBarColor, int navigationBarColor) {
|
||||
mDecorView = decorView;
|
||||
mResizingBackgroundDrawable = resizingBackgroundDrawable != null
|
||||
&& resizingBackgroundDrawable.getConstantState() != null
|
||||
? resizingBackgroundDrawable.getConstantState().newDrawable()
|
||||
: null;
|
||||
mCaptionBackgroundDrawable = captionBackgroundDrawableDrawable != null
|
||||
&& captionBackgroundDrawableDrawable.getConstantState() != null
|
||||
? captionBackgroundDrawableDrawable.getConstantState().newDrawable()
|
||||
: null;
|
||||
mUserCaptionBackgroundDrawable = userCaptionBackgroundDrawable != null
|
||||
&& userCaptionBackgroundDrawable.getConstantState() != null
|
||||
? userCaptionBackgroundDrawable.getConstantState().newDrawable()
|
||||
: null;
|
||||
if (mCaptionBackgroundDrawable == null) {
|
||||
|
||||
Reference in New Issue
Block a user