provide extra trim()
This commit is contained in:
parent
838ed5858e
commit
401dee1f4c
1 changed files with 2 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue