small formatting fix

This commit is contained in:
sonora 2016-08-08 09:17:05 +02:00
parent 1439a3a45d
commit 9eb842b36e
2 changed files with 2 additions and 2 deletions

View file

@ -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(ri.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());

View file

@ -37,7 +37,7 @@ public class RouteDirectionInfo {
}
public String getDescriptionRoute(OsmandApplication ctx) {
if (!descriptionRoute.endsWith(" " + OsmAndFormatter.getFormattedDistance(distance, ctx))) {
if (!descriptionRoute.endsWith(OsmAndFormatter.getFormattedDistance(distance, ctx))) {
descriptionRoute += " " + OsmAndFormatter.getFormattedDistance(distance, ctx);
}
return descriptionRoute.trim();