From 0ce5b2f212b63047e1ad72720be009fa7c32fd4c Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 29 Jul 2019 10:08:35 +0200 Subject: [PATCH] Fix transport stop compare --- .../src/main/java/net/osmand/data/TransportStop.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java b/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java index 1f88eea4b0..f2ad41586f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/TransportStop.java @@ -60,6 +60,15 @@ public class TransportStop extends MapObject { public void setDeletedRoutesIds(long[] deletedRoutesIds) { this.deletedRoutesIds = deletedRoutesIds; } + + public void addRouteId(long routeId) { + routesIds = Algorithms.addToArrayL(routesIds, routeId, true); + } + + public void addDeletedRouteId(long routeId) { + deletedRoutesIds = Algorithms.addToArrayL(deletedRoutesIds, routeId, true); + } + public boolean isRouteDeleted(long routeId) { return deletedRoutesIds != null && Arrays.binarySearch(deletedRoutesIds, routeId) >= 0;