From d06c434263739614afe6dfd29e25305b49a70e0b Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 7 Aug 2016 00:43:22 +0200 Subject: [PATCH] fix build --- .../net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java index 54e102eacf..4fe965eba5 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapRouteInfoMenu.java @@ -604,7 +604,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener { if (directionInfo >= 0 && routingHelper.getRouteDirections() != null && directionInfo < routingHelper.getRouteDirections().size()) { RouteDirectionInfo ri = routingHelper.getRouteDirections().get(directionInfo); - if (!ri.getDescriptionRoutePart().endsWith(" " + OsmAndFormatter.getFormattedDistance(distance, ctx))) { + if (!ri.getDescriptionRoutePart().endsWith(" " + OsmAndFormatter.getFormattedDistance(ri.distance, ctx))) { textView.setText((directionInfo + 1) + ". " + ri.getDescriptionRoutePart() + " " + OsmAndFormatter.getFormattedDistance(ri.distance, ctx)); } else { textView.setText((directionInfo + 1) + ". " + ri.getDescriptionRoutePart());