Merge "Disable constant state sharing for VectorDrawable" into nyc-dev

This commit is contained in:
Alan Viverette
2016-06-29 16:54:28 +00:00
committed by Android (Google) Code Review

View File

@ -240,7 +240,9 @@ public class VectorDrawable extends Drawable {
* 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);
}