aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2013-05-25 22:10:47 -0700
committerBananeweizen <Bananeweizen@gmx.de>2013-05-25 22:10:47 -0700
commit281f511cf2e67f7ed56818b4c8ce0bffab3ad3b6 (patch)
tree839c438625b4d49dd04ab17f76446d431417b93a /main/src
parent204eac84edfcad1a10bb507245daec7ef9310479 (diff)
parent0e5632331731467330148c0944148c5eae8da071 (diff)
downloadcgeo-281f511cf2e67f7ed56818b4c8ce0bffab3ad3b6.zip
cgeo-281f511cf2e67f7ed56818b4c8ce0bffab3ad3b6.tar.gz
cgeo-281f511cf2e67f7ed56818b4c8ce0bffab3ad3b6.tar.bz2
Merge pull request #2785 from campbeb/fix2727a
Fix #2727 - Support GeoTour attribute
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/enumerations/CacheAttribute.java3
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java1
2 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/CacheAttribute.java b/main/src/cgeo/geocaching/enumerations/CacheAttribute.java
index 339516b..243f63d 100644
--- a/main/src/cgeo/geocaching/enumerations/CacheAttribute.java
+++ b/main/src/cgeo/geocaching/enumerations/CacheAttribute.java
@@ -108,7 +108,8 @@ public enum CacheAttribute {
ARITHMETIC(-1, 56, "arithmetic", R.drawable.attribute_arithmetic, R.string.attribute_arithmetic_yes, R.string.attribute_arithmetic_no),
OTHER_CACHE(-1, 57, "other_cache", R.drawable.attribute_other_cache, R.string.attribute_other_cache_yes, R.string.attribute_other_cache_no),
ASK_OWNER(-1, 58, "ask_owner", R.drawable.attribute_ask_owner, R.string.attribute_ask_owner_yes, R.string.attribute_ask_owner_no),
- UNKNOWN(-1, -1, "unknown", R.drawable.attribute_unknown, R.string.attribute_unknown_yes, R.string.attribute_unknown_no);
+ UNKNOWN(-1, -1, "unknown", R.drawable.attribute_unknown, R.string.attribute_unknown_yes, R.string.attribute_unknown_no),
+ GEOTOUR(67, -1, "geotour", R.drawable.attribute_geotour, R.string.attribute_geotour_yes, R.string.attribute_geotour_no);
// THIS LIST IS GENERATED: don't change anything here but read
// project/attributes/readme.txt
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index 96c90cc..4150b87 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -183,6 +183,7 @@ public abstract class GPXParser extends FileParser {
R.string.attribute_treeclimbing_yes, // 64
R.string.attribute_frontyard_yes, // 65
R.string.attribute_teamwork_yes, // 66
+ R.string.attribute_geotour_yes, // 67
};
private static final String YES = "_yes";
private static final String NO = "_no";