diff options
| author | ztenghui <ztenghui@google.com> | 2014-07-23 09:47:50 -0700 |
|---|---|---|
| committer | Tenghui Zhu <ztenghui@google.com> | 2014-07-25 23:26:41 +0000 |
| commit | a95c8abb366d9c39450513335f550b56da13b30a (patch) | |
| tree | 93bd8f429df7d0b8aa1aa7d22d4a60f60e36944b /core/java/android/util/PathParser.java | |
| parent | 9e8ade2eb7ee835963473c9cf6faaf5423b0b048 (diff) | |
API REVIEW: VectorDrawable
- Merge <size> and <viewport> attributes all in to top-level <vector> tag
- Indent attributes under <group> in java doc.
- Updata android:stroke to be android:strokeColor, likewise android:fill
- Instead of android:clipToPath, make this a different clip-path tag.
- Document units of the various attributes
- Add example code for defining a VectorDrawable resource
More than that:
= Refactor the code to better support clipPath as a sub-class.
= Update all the xml files to use the new attributes and clip-path tag.
TODO:
-- Remove clipToPath, since that should happen on build break Friday.
bug:16488254
Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
Diffstat (limited to 'core/java/android/util/PathParser.java')
| -rw-r--r-- | core/java/android/util/PathParser.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/util/PathParser.java b/core/java/android/util/PathParser.java index c36421db9b06..6820f7785ec2 100644 --- a/core/java/android/util/PathParser.java +++ b/core/java/android/util/PathParser.java @@ -74,6 +74,9 @@ public class PathParser { * @return a deep copy of the <code>source</code>. */ public static PathDataNode[] deepCopyNodes(PathDataNode[] source) { + if (source == null) { + return null; + } PathDataNode[] copy = new PathParser.PathDataNode[source.length]; for (int i = 0; i < source.length; i ++) { copy[i] = new PathDataNode(source[i]); |
