Merge pull request #2485 from njohnston/master

Fix #2484 - GPX tracks not shown unless extension is .gpx
This commit is contained in:
vshcherb 2016-04-23 18:52:05 +02:00
commit d02ee6b71d
2 changed files with 2 additions and 2 deletions

View file

@ -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('_', ' ');

View file

@ -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;