make footway arrival clickable

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@131 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-09-05 12:51:17 +00:00
parent 1ab51c23f5
commit d9499a3329
7 changed files with 35 additions and 23 deletions

View file

@ -458,11 +458,12 @@ public final class VbbProvider implements NetworkProvider
if (parts.size() > 0 && parts.get(parts.size() - 1) instanceof Connection.Footway)
{
final Connection.Footway lastFootway = (Connection.Footway) parts.remove(parts.size() - 1);
parts.add(new Connection.Footway(lastFootway.min + Integer.parseInt(min), lastFootway.departure, arrival));
parts.add(new Connection.Footway(lastFootway.min + Integer.parseInt(min), lastFootway.departureId, lastFootway.departure,
arrivalId, arrival));
}
else
{
parts.add(new Connection.Footway(Integer.parseInt(min), departure, arrival));
parts.add(new Connection.Footway(Integer.parseInt(min), departureId, departure, arrivalId, arrival));
}
lastArrival = arrival;