diff --git a/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java b/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java index 1a974cb522..e073aabb3e 100644 --- a/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java +++ b/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java @@ -432,11 +432,11 @@ public class ImportHelper { } else { if (save) { String existingFilePath = getExistingFilePath(name, fileSize); - name = getNewName(name); if (existingFilePath != null) { app.showToastMessage(R.string.file_already_imported); showGpxInDetailsActivity(existingFilePath); } else { + name = getNewName(name); executeImportTask(new SaveAsyncTask(result, name, useImportDir, showInDetailsActivity)); } } else {