Use Alt formatting, not Distance

This commit is contained in:
sonora 2013-06-25 14:40:52 +02:00
parent 1a8be5fc55
commit 2b23e311b1

View file

@ -223,11 +223,11 @@ public class LocalIndexHelper {
if(totalElevation != 0 || diffElevationUp != 0 || diffElevationDown != 0){
info.setDescription(info.getDescription() +
app.getString(R.string.local_index_gpx_info_elevation,
OsmAndFormatter.getFormattedDistance( (float) (totalElevation / points), app),
OsmAndFormatter.getFormattedDistance( (float) minElevation, app),
OsmAndFormatter.getFormattedDistance( (float) maxElevation, app),
OsmAndFormatter.getFormattedDistance( (float) diffElevationUp, app),
OsmAndFormatter.getFormattedDistance( (float) diffElevationDown, app)));
OsmAndFormatter.getFormattedAlt(totalElevation / points, app),
OsmAndFormatter.getFormattedAlt(minElevation, app),
OsmAndFormatter.getFormattedAlt(maxElevation, app),
OsmAndFormatter.getFormattedAlt(diffElevationUp, app),
OsmAndFormatter.getFormattedAlt(diffElevationDown, app)));
}
// 5. Max speed and Average speed, if any. Average speed is NOT overall (effective) speed, but only calculated for "moving" periods.