Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c4d8b21 authored by ztenghui's avatar ztenghui Committed by Tenghui Zhu
Browse files

Correct the tag's name in the exceptions

Change-Id: I9d1499fbcf8adb6bf0c5c0b7a10a8b480a708c09
parent 8d7c55bd
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -436,10 +436,10 @@ public class VectorDrawable extends Drawable {

        if (pathRenderer.mViewportWidth <= 0) {
            throw new XmlPullParserException(a.getPositionDescription() +
                    "<viewport> tag requires viewportWidth > 0");
                    "<vector> tag requires viewportWidth > 0");
        } else if (pathRenderer.mViewportHeight <= 0) {
            throw new XmlPullParserException(a.getPositionDescription() +
                    "<viewport> tag requires viewportHeight > 0");
                    "<vector> tag requires viewportHeight > 0");
        }

        pathRenderer.mBaseWidth = a.getDimension(
@@ -449,10 +449,10 @@ public class VectorDrawable extends Drawable {

        if (pathRenderer.mBaseWidth <= 0) {
            throw new XmlPullParserException(a.getPositionDescription() +
                    "<size> tag requires width > 0");
                    "<vector> tag requires width > 0");
        } else if (pathRenderer.mBaseHeight <= 0) {
            throw new XmlPullParserException(a.getPositionDescription() +
                    "<size> tag requires height > 0");
                    "<vector> tag requires height > 0");
        }
    }