This commit is contained in:
madwasp79 2019-03-14 17:18:59 +02:00
parent 4542c1088b
commit 83c7f833d7

View file

@ -414,8 +414,8 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
@Override
public void onClick(View v) {
if (editingCtx.getPointsCount() > 0) {
if (newGpxData != null && newGpxData.getActionType()
== NewGpxData.ActionType.EDIT_SEGMENT && editingCtx.isInSnapToRoadMode()) {
if (newGpxData != null && newGpxData.getActionType() == NewGpxData.ActionType.EDIT_SEGMENT
&& editingCtx.isInSnapToRoadMode()) {
if (mapActivity != null && measurementLayer != null) {
if (editingCtx.getPointsCount() > 0) {
openSaveAsNewTrackMenu(mapActivity);