File formatting and prevent extra blanks

This commit is contained in:
sonora 2016-08-06 09:10:51 +02:00
parent e9ce449d43
commit eafca496fe

View file

@ -262,9 +262,11 @@ public class RouteCalculationResult {
String description = toString(turn, ctx) + " " + RoutingHelper.formatStreetName(info.getStreetName(),
info.getRef(), info.getDestinationName(), ctx.getString(R.string.towards));
destination = destination.trim();
String[] pointNames = s.getObject().getPointNames(s.getStartPointIndex());
if(pointNames != null) {
for (int t = 0; t < pointNames.length; t++) {
description = description.trim();
description += " " + pointNames[t];
}
}