From e3c45e7a6b2a7d2176aa46ee482e299b54feeb9f Mon Sep 17 00:00:00 2001 From: ztenghui Date: Mon, 19 May 2014 09:27:26 -0700 Subject: Remove the versionCode Change-Id: I2a77fefd7b14fd3bef0b0c7a142fe88e69883c75 --- .../java/android/graphics/drawable/VectorDrawable.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'graphics') diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java index 2da8615..65d4e48 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java @@ -50,8 +50,7 @@ import java.util.HashMap; *

*

*
<vector>
- *
The attribute android:versionCode defines the version of - * VectorDrawable
+ *
Used to defined a vector drawable
*
<size>
*
Used to defined the intrinsic Width Height size of the drawable using * android:width and android:height
@@ -284,20 +283,6 @@ public class VectorDrawable extends Drawable { } else if (SHAPE_VIEWPORT.equals(tagName)) { pathRenderer.parseViewport(res, attrs); noViewportTag = false; - } else if (SHAPE_VECTOR.equals(tagName)) { - final TypedArray a = res.obtainAttributes(attrs, R.styleable.VectorDrawable); - - // Parsing the version information. - // Right now, we only support version "1". - // If the xml didn't specify the version number, the default - // version is "1". - final int versionCode = a.getInt(R.styleable.VectorDrawable_versionCode, 1); - if (versionCode != 1) { - throw new IllegalArgumentException( - "So far, VectorDrawable only support version 1"); - } - - a.recycle(); } } -- cgit v1.1