Don't overwrite GPX file if it's there were no changes
This commit is contained in:
parent
eb3ecabf53
commit
e1d02fabd2
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue