use destination string also in waypoints list
This commit is contained in:
parent
12874db2d0
commit
2c3d2e8b9e
1 changed files with 5 additions and 2 deletions
|
@ -201,8 +201,11 @@ public class IntermediatePointsDialog {
|
||||||
double meters = MapUtils.getDistance(intermediates.get(position), lat, lon);
|
double meters = MapUtils.getDistance(intermediates.get(position), lat, lon);
|
||||||
distString = OsmAndFormatter.getFormattedDistance((float) meters, app);
|
distString = OsmAndFormatter.getFormattedDistance((float) meters, app);
|
||||||
}
|
}
|
||||||
|
if(position < intermediates.size() - 1) {
|
||||||
nm += app.getString(R.string.target_point, distString);
|
nm += app.getString(R.string.target_point, distString);
|
||||||
|
} else {
|
||||||
|
nm += app.getString(R.string.destination_point, distString);
|
||||||
|
}
|
||||||
String descr = names.get(position);
|
String descr = names.get(position);
|
||||||
if(descr != null && descr.trim().length() > 0) {
|
if(descr != null && descr.trim().length() > 0) {
|
||||||
nm += "\n" + descr;
|
nm += "\n" + descr;
|
||||||
|
|
Loading…
Reference in a new issue