diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-12-01 11:17:28 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-12-01 11:17:28 +0100 |
| commit | 9e8bd582fe704f06414f4018da65a49976511541 (patch) | |
| tree | 4d40f1247b311ad20ea686fb12deb2261fc5e036 /main/src/cgeo/geocaching/apps | |
| parent | 2a399517f9bbd58fdd1f9bb79bac08ef5d1d344d (diff) | |
| download | cgeo-9e8bd582fe704f06414f4018da65a49976511541.zip cgeo-9e8bd582fe704f06414f4018da65a49976511541.tar.gz cgeo-9e8bd582fe704f06414f4018da65a49976511541.tar.bz2 | |
fix #2211: remove application-database indirection
Diffstat (limited to 'main/src/cgeo/geocaching/apps')
| -rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java index f27b53c..f8521ad 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java @@ -5,8 +5,8 @@ import cgeo.geocaching.R; import cgeo.geocaching.StaticMapsActivity; import cgeo.geocaching.StaticMapsProvider; import cgeo.geocaching.cgCache; +import cgeo.geocaching.cgData; import cgeo.geocaching.cgWaypoint; -import cgeo.geocaching.cgeoapplication; import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.apps.AbstractApp; @@ -30,11 +30,12 @@ abstract class AbstractStaticMapsApp extends AbstractApp implements CacheNavigat } protected static boolean hasStaticMap(cgWaypoint waypoint) { - if (waypoint==null) + if (waypoint==null) { return false; + } String geocode = waypoint.getGeocode(); int id = waypoint.getId(); - if (StringUtils.isNotEmpty(geocode) && cgeoapplication.getInstance().isOffline(geocode, null)) { + if (StringUtils.isNotEmpty(geocode) && cgData.isOffline(geocode, null)) { return StaticMapsProvider.hasStaticMapForWaypoint(geocode, id); } return false; |
