commit | 1882ce941ba38879733617e7a5734a244d8afaf3 | [log] [tgz] |
---|---|---|
author | Alan Viverette <alanv@google.com> | Wed Jun 29 11:32:13 2016 -0400 |
committer | Alan Viverette <alanv@google.com> | Wed Jun 29 11:32:13 2016 -0400 |
tree | 148fd1c470b53a8e34a6483007e9303c93502dc1 | |
parent | 43f6a45e7e111af8a843e001b555082cb356a529 [diff] |
Disable constant state sharing for VectorDrawable Bug: 29854240 Change-Id: Icc58d04ad6f471d05b085a9089893e4f7205eb7d
diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java index f5592fa..7b8dc52 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java
@@ -240,7 +240,9 @@ * constructors to set the state and initialize local properties. */ private VectorDrawable(@NonNull VectorDrawableState state, @Nullable Resources res) { - mVectorState = state; + // Constant state sharing is disabled until we fix onStateChanged() + // affecting the shared bitmap. + mVectorState = new VectorDrawableState(state); updateLocalState(res); }