From 9c13ed366f205d94b2f3f4ddc96b55b1b9faadba Mon Sep 17 00:00:00 2001 From: ztenghui Date: Mon, 15 Sep 2014 16:36:07 -0700 Subject: [PATCH] Set cache dirty when re-create the cache bitmap b/17503595 Change-Id: Icdaa3651345b740772363f8afb29bb36741fcc87 --- graphics/java/android/graphics/drawable/VectorDrawable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java index bb6b1c9946e84..ace5eabcbd067 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java @@ -702,6 +702,7 @@ public class VectorDrawable extends Drawable { bounds.height())) { mCachedBitmap = Bitmap.createBitmap(bounds.width(), bounds.height(), Bitmap.Config.ARGB_8888); + mCacheDirty = true; } }