aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/CachesOverlay.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-12-01 11:17:28 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-12-01 11:17:28 +0100
commit9e8bd582fe704f06414f4018da65a49976511541 (patch)
tree4d40f1247b311ad20ea686fb12deb2261fc5e036 /main/src/cgeo/geocaching/maps/CachesOverlay.java
parent2a399517f9bbd58fdd1f9bb79bac08ef5d1d344d (diff)
downloadcgeo-9e8bd582fe704f06414f4018da65a49976511541.zip
cgeo-9e8bd582fe704f06414f4018da65a49976511541.tar.gz
cgeo-9e8bd582fe704f06414f4018da65a49976511541.tar.bz2
fix #2211: remove application-database indirection
Diffstat (limited to 'main/src/cgeo/geocaching/maps/CachesOverlay.java')
-rw-r--r--main/src/cgeo/geocaching/maps/CachesOverlay.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CachesOverlay.java b/main/src/cgeo/geocaching/maps/CachesOverlay.java
index b656900..e7c3903 100644
--- a/main/src/cgeo/geocaching/maps/CachesOverlay.java
+++ b/main/src/cgeo/geocaching/maps/CachesOverlay.java
@@ -6,7 +6,7 @@ import cgeo.geocaching.R;
import cgeo.geocaching.Settings;
import cgeo.geocaching.WaypointPopup;
import cgeo.geocaching.cgCache;
-import cgeo.geocaching.cgeoapplication;
+import cgeo.geocaching.cgData;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.connector.gc.GCMap;
import cgeo.geocaching.enumerations.CacheType;
@@ -228,7 +228,7 @@ public class CachesOverlay extends AbstractItemizedOverlay {
final IWaypoint coordinate = item.getCoord();
if (StringUtils.isNotBlank(coordinate.getCoordType()) && coordinate.getCoordType().equalsIgnoreCase("cache") && StringUtils.isNotBlank(coordinate.getGeocode())) {
- cgCache cache = cgeoapplication.getInstance().loadCache(coordinate.getGeocode(), LoadFlags.LOAD_CACHE_OR_DB);
+ cgCache cache = cgData.loadCache(coordinate.getGeocode(), LoadFlags.LOAD_CACHE_OR_DB);
RequestDetailsThread requestDetailsThread = new RequestDetailsThread(cache);
if (!requestDetailsThread.requestRequired()) {
// don't show popup if we have enough details