From 2b23e311b1bfe71bab869e08737a999c819f8150 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 25 Jun 2013 14:40:52 +0200 Subject: [PATCH] Use Alt formatting, not Distance --- .../net/osmand/plus/activities/LocalIndexHelper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/LocalIndexHelper.java b/OsmAnd/src/net/osmand/plus/activities/LocalIndexHelper.java index a96366516b..ceaa93f597 100644 --- a/OsmAnd/src/net/osmand/plus/activities/LocalIndexHelper.java +++ b/OsmAnd/src/net/osmand/plus/activities/LocalIndexHelper.java @@ -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.