diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 8306c4e000..c6c1306f4d 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -10,6 +10,7 @@ PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy --> + Current track Battery level Change marker\'s position Move the map to change marker\'s position diff --git a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java index bd5819b096..24faf1991a 100644 --- a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java +++ b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java @@ -55,6 +55,11 @@ public class GpxSelectionHelper { public String getGpxDescription() { if (selectedGPXFiles.size() == 1) { + GPXFile currentGPX = app.getSavingTrackHelper().getCurrentGpx(); + if (selectedGPXFiles.get(0).getGpxFile() == currentGPX) { + return app.getResources().getString(R.string.current_track); + } + File file = new File(selectedGPXFiles.get(0).getGpxFile().path); return Algorithms.getFileNameWithoutExtension(file); } else if (selectedGPXFiles.size() == 0) {