From e420cdb3ec366ef52ac88dba9fa9982d294a4ec4 Mon Sep 17 00:00:00 2001 From: Skalii Date: Tue, 23 Feb 2021 10:46:11 +0200 Subject: [PATCH] fix name for unnamed waypoints --- 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 3785331119..e65727b6c1 100644 --- a/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java +++ b/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java @@ -674,7 +674,7 @@ public class ImportHelper { List favourites = new ArrayList<>(); for (WptPt p : wptPts) { if (Algorithms.isEmpty(p.name)) { - p.name = Algorithms.getFileNameWithoutExtension(fileName); + p.name = app.getResources().getString(R.string.shared_string_waypoint); } if (!Algorithms.isEmpty(p.name)) { final String fpCat;