VRS: don't query for more trip results if first query returns empty

This commit is contained in:
Andreas Schildbach 2023-02-03 18:19:47 +01:00
parent 93251e0d93
commit dabbebe002

View file

@ -101,12 +101,12 @@ public class VrsProvider extends AbstractNetworkProvider {
@Override
public boolean canQueryLater() {
return this.canQueryLater;
return this.canQueryLater && this.lastDeparture != null;
}
@Override
public boolean canQueryEarlier() {
return this.canQueryEarlier;
return this.canQueryEarlier && this.firstArrival != null;
}
public void departure(Date departure) {