From 8311a5071f7bb11fa466691d97df9ee02dfe6b7d Mon Sep 17 00:00:00 2001 From: Hardy Date: Wed, 9 Mar 2016 02:01:40 -0800 Subject: [PATCH] Update OsmAndFormatter.java Miles interval selection exceptions --- OsmAnd/src/net/osmand/plus/OsmAndFormatter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java b/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java index 19590cad48..8b00d1c073 100644 --- a/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java +++ b/OsmAnd/src/net/osmand/plus/OsmAndFormatter.java @@ -66,7 +66,14 @@ public class OsmAndFormatter { pointer = 1; } } - + //Miles exceptions + if (mc == MetricsConstants.MILES_AND_FOOTS && point == 1 / metersInSecondUnit && roundDist == 2000) { + roundDist = 0.5f; + } else if (mc == MetricsConstants.MILES_AND_YARDS && point == 1 / metersInSecondUnit && roundDist == 1000) { + roundDist = 0.5f; + } else if (mc == MetricsConstants.MILES_AND_YARDS && point == 1 / metersInSecondUnit && roundDist ==500) { + roundDist = 0.25f; + } return roundDist; }