Don't overwrite GPX file if it's there were no changes

This commit is contained in:
cepprice 2021-02-12 20:41:23 +05:00
parent eb3ecabf53
commit e1d02fabd2

View file

@ -496,8 +496,12 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
public void onClick(View v) {
if (isFollowTrackMode()) {
startTrackNavigation();
} else {
} else if (editingCtx.isNewData() || editingCtx.hasChanges()) {
saveChanges(FinalSaveAction.SHOW_SNACK_BAR_AND_CLOSE, false);
} else {
if (mapActivity != null) {
dismiss(mapActivity, false);
}
}
}
});