NetworkProvider: Add maxLocations parameter to suggestLocations().

This commit is contained in:
Andreas Schildbach 2019-01-06 14:18:08 +01:00
parent 73cf64278f
commit 0ea83a1ad3
12 changed files with 55 additions and 33 deletions

View file

@ -196,8 +196,9 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
}
@Override
public SuggestLocationsResult suggestLocations(final CharSequence constraint) throws IOException {
return jsonLocMatch(constraint, null, 0);
public SuggestLocationsResult suggestLocations(final CharSequence constraint, final int maxLocations)
throws IOException {
return jsonLocMatch(constraint, null, maxLocations);
}
@Override