From a9724b0d148229b3f7c8dfef751a8d4421b38aa5 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 23 Aug 2017 18:49:23 +0300 Subject: [PATCH] Move variable --- .../osmand/plus/measurementtool/MeasurementEditingContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementEditingContext.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementEditingContext.java index e33f2b1c11..98ab3b8536 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementEditingContext.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementEditingContext.java @@ -193,10 +193,10 @@ public class MeasurementEditingContext { snapToRoadPairsToCalculate.add(pair); } } - inSnapToRoadMode = true; this.progressBar = progressBar; if (!snapToRoadPairsToCalculate.isEmpty() && this.progressBar != null) { mapActivity.getMyApplication().getRoutingHelper().startRouteCalculationThread(getParams(), true, true); + inSnapToRoadMode = true; progressBar.setVisibility(View.VISIBLE); } }