From e9f043d872506187c59ce45454d5c480fb5f0b1b Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Sat, 24 Apr 2021 14:42:13 +0300 Subject: [PATCH] Bug fixed --- OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {