mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 08:19:51 +00:00
fixed not displaying messages in departure list entries any more
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@78 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
ed54c30d46
commit
edd72a64c4
6 changed files with 32 additions and 8 deletions
|
@ -31,6 +31,8 @@ import java.util.Map;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import de.schildbach.pte.QueryDeparturesResult.Status;
|
||||
|
||||
/**
|
||||
* @author Andreas Schildbach
|
||||
*/
|
||||
|
@ -473,7 +475,7 @@ public final class VbbProvider implements NetworkProvider
|
|||
final int stationId = Integer.parseInt(mStationId.group(1));
|
||||
|
||||
if (P_DEPARTURES_SERVICE_DOWN.matcher(page).find())
|
||||
return QueryDeparturesResult.SERVICE_DOWN;
|
||||
return new QueryDeparturesResult(uri, Status.SERVICE_DOWN);
|
||||
|
||||
// parse page
|
||||
final Matcher mHead = P_DEPARTURES_HEAD.matcher(page);
|
||||
|
@ -525,7 +527,7 @@ public final class VbbProvider implements NetworkProvider
|
|||
}
|
||||
else
|
||||
{
|
||||
return QueryDeparturesResult.NO_INFO;
|
||||
return new QueryDeparturesResult(uri, Status.NO_INFO);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue