XmlPullUtil: skip whitespace when exiting an element

This commit is contained in:
Andreas Schildbach 2022-02-09 15:56:53 +01:00
parent 2130b5ecb6
commit 2c147075e4

View file

@ -80,6 +80,8 @@ public final class XmlPullUtil {
}
public static void exit(final XmlPullParser pp, final String tagName) throws XmlPullParserException, IOException {
skipWhitespace(pp);
pp.require(XmlPullParser.END_TAG, null, tagName);
pp.next();
}