From dda63402a96fbae1d5c560848d5cbfdf87e34188 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 17 Aug 2016 22:41:30 +0200 Subject: [PATCH] Reduce timeout for current position --- OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java b/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java index a6b603ffd2..3855f8c94c 100644 --- a/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java +++ b/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java @@ -57,7 +57,7 @@ public class CurrentPositionHelper { if (loc == null || loc.getAccuracy() > 50) { return null; } - if(last != null && last.distanceTo(loc) < 20) { + if(last != null && last.distanceTo(loc) < 10) { return r; } if (r == null) { @@ -65,7 +65,7 @@ public class CurrentPositionHelper { return null; } double d = getOrthogonalDistance(r, loc); - if (d > 25) { + if (d > 15) { scheduleRouteSegmentFind(loc, true, null, null); } if (d < 70) {