mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
This commit is contained in:
parent
6ac291eb5f
commit
946414a760
2 changed files with 11 additions and 2 deletions
|
@ -1889,7 +1889,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
XmlPullUtil.enter(pp, "itdDate");
|
XmlPullUtil.enter(pp, "itdDate");
|
||||||
if (XmlPullUtil.test(pp, "itdMessage"))
|
if (XmlPullUtil.test(pp, "itdMessage"))
|
||||||
{
|
{
|
||||||
final String message = pp.nextText();
|
final String message = XmlPullUtil.nextText(pp, null, "itdMessage");
|
||||||
|
|
||||||
if ("invalid date".equals(message))
|
if ("invalid date".equals(message))
|
||||||
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.INVALID_DATE);
|
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.INVALID_DATE);
|
||||||
else
|
else
|
||||||
|
|
|
@ -301,7 +301,15 @@ public final class XmlPullUtil
|
||||||
throw new XmlPullParserException("name for element can not be null");
|
throw new XmlPullParserException("name for element can not be null");
|
||||||
|
|
||||||
pp.require(XmlPullParser.START_TAG, namespace, name);
|
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