From 49ea1c418cf819bc6f0d9aa8a8c337f1464d8ab5 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Thu, 14 Mar 2019 17:04:22 +0200 Subject: [PATCH] Issue #6187 - Tracks - Show on map button re-opens wrong sub-folder (cherry picked from commit 231550951ea490a6ca6b01e8235b7fcca50acff6) --- .../osmand/plus/measurementtool/MeasurementToolFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java index 51e7111ecd..0cad96ecca 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java @@ -414,7 +414,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment { @Override public void onClick(View v) { if (editingCtx.getPointsCount() > 0) { - if (newGpxData!=null && newGpxData.getActionType() + if (newGpxData != null && newGpxData.getActionType() == NewGpxData.ActionType.EDIT_SEGMENT && editingCtx.isInSnapToRoadMode()) { if (mapActivity != null && measurementLayer != null) { if (editingCtx.getPointsCount() > 0) {