diff --git a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java index e5b91cedbc..bd5819b096 100644 --- a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java +++ b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java @@ -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('_', ' '); diff --git a/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java index a1176864be..c4c82ca3a2 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java @@ -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;