Merge "Fix threading problems with drawables" into nyc-dev am: 1e09e9826b
am: e48384c867
* commit 'e48384c8672f53b00b231a7590f45650f1e3f22e':
Fix threading problems with drawables
Change-Id: Icad4ab1e6f497ab1c549b2d0bb1720c13f6254c2
This commit is contained in:
@@ -109,9 +109,15 @@ public class BackdropFrameRenderer extends Thread implements Choreographer.Frame
|
|||||||
Drawable captionBackgroundDrawableDrawable, Drawable userCaptionBackgroundDrawable,
|
Drawable captionBackgroundDrawableDrawable, Drawable userCaptionBackgroundDrawable,
|
||||||
int statusBarColor, int navigationBarColor) {
|
int statusBarColor, int navigationBarColor) {
|
||||||
mDecorView = decorView;
|
mDecorView = decorView;
|
||||||
mResizingBackgroundDrawable = resizingBackgroundDrawable;
|
mResizingBackgroundDrawable = resizingBackgroundDrawable != null
|
||||||
mCaptionBackgroundDrawable = captionBackgroundDrawableDrawable;
|
? resizingBackgroundDrawable.getConstantState().newDrawable()
|
||||||
mUserCaptionBackgroundDrawable = userCaptionBackgroundDrawable;
|
: null;
|
||||||
|
mCaptionBackgroundDrawable = captionBackgroundDrawableDrawable != null
|
||||||
|
? captionBackgroundDrawableDrawable.getConstantState().newDrawable()
|
||||||
|
: null;
|
||||||
|
mUserCaptionBackgroundDrawable = userCaptionBackgroundDrawable != null
|
||||||
|
? userCaptionBackgroundDrawable.getConstantState().newDrawable()
|
||||||
|
: null;
|
||||||
if (mCaptionBackgroundDrawable == null) {
|
if (mCaptionBackgroundDrawable == null) {
|
||||||
mCaptionBackgroundDrawable = mResizingBackgroundDrawable;
|
mCaptionBackgroundDrawable = mResizingBackgroundDrawable;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user