From ce31948e71b65746986d509256141fd9a0cac7a7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 10 Sep 2020 10:29:50 +0200 Subject: [PATCH] Adjust progress --- .../main/java/net/osmand/router/RouteCalculationProgress.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RouteCalculationProgress.java b/OsmAnd-java/src/main/java/net/osmand/router/RouteCalculationProgress.java index 8bde5fb534..2e6db09022 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RouteCalculationProgress.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RouteCalculationProgress.java @@ -58,7 +58,7 @@ public class RouteCalculationProgress { progress = (INITIAL_PROGRESS + FIRST_ITERATION) + pr * (1 - FIRST_ITERATION - INITIAL_PROGRESS); } } else { - progress = (iteration + Math.min(pr, 1)) / totalIterations; + progress = (float) ((iteration + Math.min(pr, 0.7)) / totalIterations); } return Math.min(progress * 100f, 99); }