diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-11-08 14:21:08 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-11-08 15:32:57 +0100 |
commit | 5ce29151e122a140915e2971ba7219381f4fcc43 (patch) | |
tree | a74c90d57dc9c64bc1088bfb7fc03f4ad0fd27e1 /main/src/cgeo/geocaching/StaticMapsProvider.java | |
parent | 7b7d1f4d6da3503ba13d93f6efb699fc4b285699 (diff) | |
download | cgeo-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.java | 8 |
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"); |