Fixes #2491
This commit is contained in:
parent
cf21c246d7
commit
0f99e5dc2f
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
-->
|
||||
|
||||
<string name="current_track">Current track</string>
|
||||
<string name="map_widget_battery">Battery level</string>
|
||||
<string name="change_markers_position">Change marker\'s position</string>
|
||||
<string name="move_marker_bottom_sheet_title">Move the map to change marker\'s position</string>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue