Fix new route file extension

This commit is contained in:
Dima-1 2020-07-22 18:45:36 +03:00
parent ab993c88de
commit 3112c1e0a8

View file

@ -451,7 +451,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
} else {
if (newGpxData == null) {
final File dir = mapActivity.getMyApplication().getAppPath(IndexConstants.GPX_INDEX_DIR);
String fileName = getSuggestedName(dir);
String fileName = getSuggestedName(dir) + GPX_FILE_EXT;
saveNewGpx(dir, fileName, true, SaveType.ROUTE_POINT, true);
} else {
addToGpx(mapActivity);