diff --git a/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java b/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java index 480bca455a..6b8926b413 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java @@ -168,9 +168,9 @@ public class BinaryRoutePlanner { if (ctx.calculationProgress != null) { ctx.calculationProgress.visitedDirectSegments += visitedDirectSegments.size(); ctx.calculationProgress.visitedOppositeSegments += visitedOppositeSegments.size(); - ctx.calculationProgress.directQueueSize = graphDirectSegments.size(); // Math.max(ctx.directQueueSize, + ctx.calculationProgress.directQueueSize += graphDirectSegments.size(); // Math.max(ctx.directQueueSize, // graphDirectSegments.size()); - ctx.calculationProgress.oppositeQueueSize = graphReverseSegments.size(); + ctx.calculationProgress.oppositeQueueSize += graphReverseSegments.size(); ctx.calculationProgress.visitedOppositeSegments += visitedOppositeSegments.size(); } return finalSegment; diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java b/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java index 81f4936234..e888ad1d59 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java @@ -318,7 +318,7 @@ public class RoutingContext { global.allRoutes += ts.tileStatistics.allRoutes; global.coordinates += ts.tileStatistics.coordinates; } - if(calculationProgress != null) { + if (calculationProgress != null) { calculationProgress.distinctLoadedTiles++; } }