aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2012-06-30 00:33:57 +0200
committerrsudev <rasch@munin-soft.de>2012-06-30 00:33:57 +0200
commit7bc5c5c4565e80d0fdd9b5ec2023b3ff0c50bf16 (patch)
tree9e0cc4fd171d8f4b2c236e1b7872d4dee06e10b6 /main
parent388a5a3b1c0885a65fb036feb2cbd3d4106e83f0 (diff)
downloadcgeo-7bc5c5c4565e80d0fdd9b5ec2023b3ff0c50bf16.zip
cgeo-7bc5c5c4565e80d0fdd9b5ec2023b3ff0c50bf16.tar.gz
cgeo-7bc5c5c4565e80d0fdd9b5ec2023b3ff0c50bf16.tar.bz2
Fix #1846, parse 'medium' as Regular for cache size
In the update on 26.06.2012 geocaching com decided to replace Regular by medium for the size on the cache details page (though not in other places like search results), so we parse medium to regular size now
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/enumerations/CacheSize.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/CacheSize.java b/main/src/cgeo/geocaching/enumerations/CacheSize.java
index 55d64bf..155c9a5 100644
--- a/main/src/cgeo/geocaching/enumerations/CacheSize.java
+++ b/main/src/cgeo/geocaching/enumerations/CacheSize.java
@@ -36,6 +36,8 @@ public enum CacheSize {
for (CacheSize cs : values()) {
mapping.put(cs.id.toLowerCase(), cs);
}
+ // add medium as additional string for Regular
+ mapping.put("medium", CacheSize.REGULAR);
FIND_BY_ID = Collections.unmodifiableMap(mapping);
}