diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-27 12:37:43 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-27 12:37:43 +0200 |
commit | 16fad207ba63733a572a3e0aad171a677f85a44d (patch) | |
tree | bbe01baaebb8305d5c6a11dfac3f1f3f9d758d35 /main/src/cgeo/geocaching/cgeoadvsearch.java | |
parent | d89efa23659dae79735292c2336d7f3fb103a918 (diff) | |
download | cgeo-16fad207ba63733a572a3e0aad171a677f85a44d.zip cgeo-16fad207ba63733a572a3e0aad171a677f85a44d.tar.gz cgeo-16fad207ba63733a572a3e0aad171a677f85a44d.tar.bz2 |
Remove Now from methods of IGeoData
Diffstat (limited to 'main/src/cgeo/geocaching/cgeoadvsearch.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeoadvsearch.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/cgeoadvsearch.java b/main/src/cgeo/geocaching/cgeoadvsearch.java index 9d3f2a8..4fac391 100644 --- a/main/src/cgeo/geocaching/cgeoadvsearch.java +++ b/main/src/cgeo/geocaching/cgeoadvsearch.java @@ -221,12 +221,12 @@ public class cgeoadvsearch extends AbstractActivity implements IObserver<IGeoDat lonEdit = (EditText) findViewById(R.id.longitude); } - if (geo.getCoordsNow() != null) { + if (geo.getCoords() != null) { if (latEdit != null) { - latEdit.setHint(geo.getCoordsNow().format(GeopointFormatter.Format.LAT_DECMINUTE_RAW)); + latEdit.setHint(geo.getCoords().format(GeopointFormatter.Format.LAT_DECMINUTE_RAW)); } if (lonEdit != null) { - lonEdit.setHint(geo.getCoordsNow().format(GeopointFormatter.Format.LON_DECMINUTE_RAW)); + lonEdit.setHint(geo.getCoords().format(GeopointFormatter.Format.LON_DECMINUTE_RAW)); } } } catch (Exception e) { @@ -266,9 +266,9 @@ public class cgeoadvsearch extends AbstractActivity implements IObserver<IGeoDat if (StringUtils.isEmpty(latText) || StringUtils.isEmpty(lonText)) { final IGeoData geo = app.currentGeo(); - if (geo.getCoordsNow() != null) { - latView.setText(geo.getCoordsNow().format(GeopointFormatter.Format.LAT_DECMINUTE)); - lonView.setText(geo.getCoordsNow().format(GeopointFormatter.Format.LON_DECMINUTE)); + if (geo.getCoords() != null) { + latView.setText(geo.getCoords().format(GeopointFormatter.Format.LAT_DECMINUTE)); + lonView.setText(geo.getCoords().format(GeopointFormatter.Format.LON_DECMINUTE)); } } else { try { |