provide extra trim()

This commit is contained in:
sonora 2016-08-06 09:50:35 +02:00
parent 838ed5858e
commit 401dee1f4c

View file

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