Fix gpx casing

This commit is contained in:
Victor Shcherb 2013-08-04 00:34:38 +02:00
parent 87582724bc
commit 12beb1ac14

View file

@ -496,7 +496,7 @@ public class MapActivityLayers {
File[] files = dir.listFiles();
if (files != null) {
for (File f : files) {
if (f.getName().endsWith(".gpx")) { //$NON-NLS-1$
if (f.getName().toLowerCase().endsWith(".gpx")) { //$NON-NLS-1$
list.add(parent + f.getName());
} else if (f.isDirectory()) {
readGpxDirectory(f, list, parent + f.getName() + "/");