diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-11-07 11:35:53 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-11-07 12:53:30 +0100 |
commit | 739de1c562f4814c2883459823aa46aadf26d96c (patch) | |
tree | aeab95f3edc7b6cbb4a5a81d4f990cdb063caf85 /main/src/cgeo/geocaching/cgeonavigate.java | |
parent | c67baaf158d1102335b02defcfa445c3dda5fca0 (diff) | |
download | cgeo-739de1c562f4814c2883459823aa46aadf26d96c.zip cgeo-739de1c562f4814c2883459823aa46aadf26d96c.tar.gz cgeo-739de1c562f4814c2883459823aa46aadf26d96c.tar.bz2 |
Get rid of deprecated methods related to coordinates
Diffstat (limited to 'main/src/cgeo/geocaching/cgeonavigate.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeonavigate.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/cgeonavigate.java b/main/src/cgeo/geocaching/cgeonavigate.java index 47c2b0a..aee4d64 100644 --- a/main/src/cgeo/geocaching/cgeonavigate.java +++ b/main/src/cgeo/geocaching/cgeonavigate.java @@ -2,6 +2,7 @@ package cgeo.geocaching; import cgeo.geocaching.activity.AbstractActivity; import cgeo.geocaching.geopoint.Geopoint; +import cgeo.geocaching.geopoint.GeopointFormatter; import cgeo.geocaching.maps.CGeoMap; import org.apache.commons.lang3.StringUtils; @@ -298,7 +299,7 @@ public class cgeonavigate extends AbstractActivity { return; } - ((TextView) findViewById(R.id.destination)).setText(cgBase.formatCoords(dstCoords, true)); + ((TextView) findViewById(R.id.destination)).setText(dstCoords.format(GeopointFormatter.Format.LAT_LON_DECMINUTE_PIPE)); } public void setDest(final Geopoint coords) { @@ -382,9 +383,9 @@ public class cgeonavigate extends AbstractActivity { if (geo.altitudeNow != null) { final String humanAlt = cgBase.getHumanDistance(geo.altitudeNow.floatValue() / 1000); - navLocation.setText(cgBase.formatCoords(geo.coordsNow, true) + " | " + humanAlt); + navLocation.setText(geo.coordsNow.format(GeopointFormatter.Format.LAT_LON_DECMINUTE_PIPE) + " | " + humanAlt); } else { - navLocation.setText(cgBase.formatCoords(geo.coordsNow, true)); + navLocation.setText(geo.coordsNow.format(GeopointFormatter.Format.LAT_LON_DECMINUTE_PIPE)); } updateDistanceInfo(); |