mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
This commit is contained in:
parent
6ac291eb5f
commit
946414a760
2 changed files with 11 additions and 2 deletions
|
@ -301,7 +301,15 @@ public final class XmlPullUtil
|
|||
throw new XmlPullParserException("name for element can not be null");
|
||||
|
||||
pp.require(XmlPullParser.START_TAG, namespace, name);
|
||||
return pp.nextText();
|
||||
final String text = pp.nextText();
|
||||
|
||||
// work around http://code.google.com/p/android/issues/detail?id=21425
|
||||
if (pp.getEventType() != XmlPullParser.END_TAG)
|
||||
pp.nextTag();
|
||||
|
||||
pp.require(XmlPullParser.END_TAG, namespace, name);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue