handle typical network exceptions in AsyncTasks

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@343 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-11-03 23:40:59 +00:00
parent 45465a87ee
commit 114f8db546
5 changed files with 12 additions and 53 deletions

View file

@ -125,9 +125,9 @@ public final class BahnProvider extends AbstractHafasProvider
}
if (maxStations == 0 || maxStations >= stations.size())
return new NearbyStationsResult(uri, stations);
return new NearbyStationsResult(stations);
else
return new NearbyStationsResult(uri, stations.subList(0, maxStations));
return new NearbyStationsResult(stations.subList(0, maxStations));
}
private String connectionsQueryUri(final Location from, final Location via, final Location to, final Date date, final boolean dep)