Merge "Prevent NPE when draw is called without bounds being set Test: unit test inside AdaptiveIconDrawableTest.java" into oc-dev
am: 891e03203c
Change-Id: I14746f95c369503f5515e5123a481798fc76197c
This commit is contained in:
@@ -304,6 +304,9 @@ public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback
|
||||
|
||||
@Override
|
||||
public void draw(Canvas canvas) {
|
||||
if (mLayersBitmap == null) {
|
||||
return;
|
||||
}
|
||||
if (mLayersShader == null) {
|
||||
mCanvas.setBitmap(mLayersBitmap);
|
||||
for (int i = 0; i < mLayerState.N_CHILDREN; i++) {
|
||||
|
||||
Reference in New Issue
Block a user