Fix NetworkProvider.hasCapabilities().

This commit is contained in:
Andreas Schildbach 2014-08-29 09:43:33 +02:00
parent d066f17807
commit 4d46299fb1
73 changed files with 61 additions and 606 deletions

View file

@ -187,6 +187,15 @@ public abstract class AbstractTsiProvider extends AbstractNetworkProvider
apiBase + (stopFinderEndpoint != null ? stopFinderEndpoint : DEFAULT_STOPFINDER_ENDPOINT));
}
@Override
protected boolean hasCapability(final Capability capability)
{
if (capability == Capability.DEPARTURES)
return false;
else
return true;
}
public SuggestLocationsResult suggestLocations(final CharSequence constraint) throws IOException
{
final StringBuilder parameters = buildCommonRequestParams("SearchTripPoint", "json");