aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/GPXParser.java
diff options
context:
space:
mode:
authorMatrikss <matrikss@gmail.com>2014-01-27 23:22:13 +0000
committerMatrikss <matrikss@gmail.com>2014-01-27 23:22:13 +0000
commit7359cbebab1b95b6ccf28726447c8888453427c0 (patch)
tree973021f068e54a5ae515105864ef9832927275cf /main/src/cgeo/geocaching/files/GPXParser.java
parent08e43ebdf5977e7bac1fb5f48a12024b31f4d06d (diff)
downloadcgeo-7359cbebab1b95b6ccf28726447c8888453427c0.zip
cgeo-7359cbebab1b95b6ccf28726447c8888453427c0.tar.gz
cgeo-7359cbebab1b95b6ccf28726447c8888453427c0.tar.bz2
Add FavPoints parsing for GSAK GPX;
Add test case;
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index 157ea9d..d60a801 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -524,6 +524,14 @@ public abstract class GPXParser extends FileParser {
parentCacheCode = body;
}
});
+
+ gsak.getChild(gsakNamespace, "FavPoints").setEndTextElementListener(new EndTextElementListener() {
+
+ @Override
+ public void end(String favoritePoints) {
+ cache.setFavoritePoints(Integer.parseInt(favoritePoints));
+ }
+ });
}
// c:geo extensions