diff options
Diffstat (limited to 'src/cgeo/geocaching/files/LocParser.java')
| -rw-r--r-- | src/cgeo/geocaching/files/LocParser.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cgeo/geocaching/files/LocParser.java b/src/cgeo/geocaching/files/LocParser.java index e05b5f6..152293c 100644 --- a/src/cgeo/geocaching/files/LocParser.java +++ b/src/cgeo/geocaching/files/LocParser.java @@ -6,6 +6,8 @@ import java.util.Map.Entry; import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import android.os.Handler;
+import android.util.Log;
import cgeo.geocaching.cgBase;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgCacheWrap;
@@ -14,9 +16,6 @@ import cgeo.geocaching.cgSearch; import cgeo.geocaching.cgSettings;
import cgeo.geocaching.cgeoapplication;
-import android.os.Handler;
-import android.util.Log;
-
public final class LocParser extends FileParser {
private static final Pattern patternGeocode = Pattern
.compile("name id=\"([^\"]+)\"");
@@ -132,8 +131,8 @@ public final class LocParser extends FileParser { }
}
- if (pointCoord.name != null && pointCoord.name.length() > 0) {
- coords.put(pointCoord.name, pointCoord);
+ if (pointCoord.geocode != null && pointCoord.geocode.length() > 0) {
+ coords.put(pointCoord.geocode, pointCoord);
}
}
|
