Merge pull request #2485 from njohnston/master
Fix #2484 - GPX tracks not shown unless extension is .gpx
This commit is contained in:
commit
d02ee6b71d
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ public class GpxSelectionHelper {
|
|||
if (i >= 0) {
|
||||
name = name.substring(i + 1);
|
||||
}
|
||||
if (name.endsWith(".gpx")) {
|
||||
if (name.toLowerCase().endsWith(".gpx")) {
|
||||
name = name.substring(0, name.length() - 4);
|
||||
}
|
||||
name = name.replace('_', ' ');
|
||||
|
|
|
@ -646,7 +646,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
|||
String sub = gpxSubfolder.length() == 0 ? gpxFile.getName() : gpxSubfolder + "/"
|
||||
+ gpxFile.getName();
|
||||
loadGPXFolder(gpxFile, result, loadTask, progress, sub);
|
||||
} else if (gpxFile.isFile() && gpxFile.getName().endsWith(".gpx")) {
|
||||
} else if (gpxFile.isFile() && gpxFile.getName().toLowerCase().endsWith(".gpx")) {
|
||||
GpxInfo info = new GpxInfo();
|
||||
info.subfolder = gpxSubfolder;
|
||||
info.file = gpxFile;
|
||||
|
|
Loading…
Reference in a new issue