Skip to content

Commit

Permalink
Fixed issue OneBusAway#227
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertgoeuropa committed Dec 9, 2019
1 parent 53f7d70 commit 99227e4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,10 +801,10 @@ public StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures(

List<ArrivalAndDepartureV2Bean> ads = new ArrayList<ArrivalAndDepartureV2Bean>();
for (ArrivalAndDepartureBean ad : sad.getArrivalsAndDepartures()) {
if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0)
continue;
ads.add(getArrivalAndDeparture(ad));
}
if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0)
continue;
ads.add(getArrivalAndDeparture(ad));
}
bean.setArrivalsAndDepartures(ads);

List<String> nearbyStopIds = new ArrayList<String>();
Expand Down

0 comments on commit 99227e4

Please sign in to comment.