queryNearbyStations() has ResultHeader as well

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@787 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-09-18 13:25:37 +00:00
parent 2b6090bdea
commit 5cbbd7f175
5 changed files with 26 additions and 23 deletions

View file

@ -118,9 +118,9 @@ public final class BahnProvider extends AbstractHafasProvider
}
if (maxStations == 0 || maxStations >= stations.size())
return new NearbyStationsResult(stations);
return new NearbyStationsResult(null, stations);
else
return new NearbyStationsResult(stations.subList(0, maxStations));
return new NearbyStationsResult(null, stations.subList(0, maxStations));
}
else
{