aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/ui/CacheDetailsCreator.java')
-rw-r--r--main/src/cgeo/geocaching/ui/CacheDetailsCreator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java b/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java
index 9059a6b..5f0d90a 100644
--- a/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java
+++ b/main/src/cgeo/geocaching/ui/CacheDetailsCreator.java
@@ -1,9 +1,9 @@
package cgeo.geocaching.ui;
+import cgeo.geocaching.CgeoApplication;
import cgeo.geocaching.Geocache;
import cgeo.geocaching.R;
import cgeo.geocaching.Waypoint;
-import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.geopoint.Units;
@@ -134,7 +134,7 @@ public final class CacheDetailsCreator {
public void addDistance(final Geocache cache, final TextView cacheDistanceView) {
Float distance = null;
if (cache.getCoords() != null) {
- final Geopoint currentCoords = cgeoapplication.getInstance().currentGeo().getCoords();
+ final Geopoint currentCoords = CgeoApplication.getInstance().currentGeo().getCoords();
if (currentCoords != null) {
distance = currentCoords.distanceTo(cache);
}
@@ -159,7 +159,7 @@ public final class CacheDetailsCreator {
public void addDistance(final Waypoint wpt, final TextView waypointDistanceView) {
Float distance = null;
if (wpt.getCoords() != null) {
- final Geopoint currentCoords = cgeoapplication.getInstance().currentGeo().getCoords();
+ final Geopoint currentCoords = CgeoApplication.getInstance().currentGeo().getCoords();
if (currentCoords != null) {
distance = currentCoords.distanceTo(wpt);
}