aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/StaticMapsProvider.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-11-08 14:21:08 +0100
committerSamuel Tardieu <sam@rfc1149.net>2011-11-08 15:32:57 +0100
commit5ce29151e122a140915e2971ba7219381f4fcc43 (patch)
treea74c90d57dc9c64bc1088bfb7fc03f4ad0fd27e1 /main/src/cgeo/geocaching/StaticMapsProvider.java
parent7b7d1f4d6da3503ba13d93f6efb699fc4b285699 (diff)
downloadcgeo-5ce29151e122a140915e2971ba7219381f4fcc43.zip
cgeo-5ce29151e122a140915e2971ba7219381f4fcc43.tar.gz
cgeo-5ce29151e122a140915e2971ba7219381f4fcc43.tar.bz2
Do not use deprecated methods
Diffstat (limited to 'main/src/cgeo/geocaching/StaticMapsProvider.java')
-rw-r--r--main/src/cgeo/geocaching/StaticMapsProvider.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/StaticMapsProvider.java b/main/src/cgeo/geocaching/StaticMapsProvider.java
index 5a968c2..2a5725e 100644
--- a/main/src/cgeo/geocaching/StaticMapsProvider.java
+++ b/main/src/cgeo/geocaching/StaticMapsProvider.java
@@ -105,13 +105,11 @@ public class StaticMapsProvider {
}
private static String getMarkerUrl(final cgCache cache) {
- String type;
+ String type = cache.getCacheType().id;
if (cache.isFound()) {
- type = cache.getType() + "_found";
+ type += "_found";
} else if (cache.isDisabled()) {
- type = cache.getType() + "_disabled";
- } else {
- type = cache.getType();
+ type += "_disabled";
}
return cgBase.urlencode_rfc3986(MARKERS_URL + "marker_cache_" + type + ".png");