diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-02-21 08:03:28 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-02-21 08:03:28 +0100 |
commit | 61b3c7758e4602495c8f356a832a10b2a4e59a2d (patch) | |
tree | 6a5cab003328eb2c01aa887233de171a652a3186 /main/src/cgeo/geocaching/cgeotrackable.java | |
parent | cfbf1b6507cf62382ccf71b04232fd6be963701c (diff) | |
download | cgeo-61b3c7758e4602495c8f356a832a10b2a4e59a2d.zip cgeo-61b3c7758e4602495c8f356a832a10b2a4e59a2d.tar.gz cgeo-61b3c7758e4602495c8f356a832a10b2a4e59a2d.tar.bz2 |
refactoring: code cleanup
* move human distance code to own class
* remove warning suppression
* fix several compiler warnings
Diffstat (limited to 'main/src/cgeo/geocaching/cgeotrackable.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeotrackable.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeotrackable.java b/main/src/cgeo/geocaching/cgeotrackable.java index 557d11a..e40e04f 100644 --- a/main/src/cgeo/geocaching/cgeotrackable.java +++ b/main/src/cgeo/geocaching/cgeotrackable.java @@ -1,6 +1,7 @@ package cgeo.geocaching; import cgeo.geocaching.activity.AbstractActivity; +import cgeo.geocaching.geopoint.HumanDistance; import cgeo.geocaching.network.HtmlImage; import org.apache.commons.lang3.StringUtils; @@ -157,7 +158,7 @@ public class cgeotrackable extends AbstractActivity { // trackable distance if (trackable.getDistance() >= 0) { - addDetail(R.string.trackable_distance, cgBase.getHumanDistance(trackable.getDistance())); + addDetail(R.string.trackable_distance, HumanDistance.getHumanDistance(trackable.getDistance())); } // trackable goal |