diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-16 15:47:28 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-16 15:47:28 +0200 |
| commit | 92b34d9bd129cef003de21b33a0870507b793a9d (patch) | |
| tree | a68f918a1ebfc1d4cd028644e38ca0acb5fd7694 /main/src/cgeo/geocaching/cgeocaches.java | |
| parent | 8082204e460186befaabbcad6e3f45aa8dd731c8 (diff) | |
| download | cgeo-92b34d9bd129cef003de21b33a0870507b793a9d.zip cgeo-92b34d9bd129cef003de21b33a0870507b793a9d.tar.gz cgeo-92b34d9bd129cef003de21b33a0870507b793a9d.tar.bz2 | |
Fix #1411: acknowledge that some offline searches have no coordinates
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
| -rw-r--r-- | main/src/cgeo/geocaching/cgeocaches.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java index 0324385..23eeec4 100644 --- a/main/src/cgeo/geocaching/cgeocaches.java +++ b/main/src/cgeo/geocaching/cgeocaches.java @@ -485,11 +485,6 @@ public class cgeocaches extends AbstractListActivity { Object typeObject = extras.get(EXTRAS_LIST_TYPE); type = (typeObject instanceof CacheListType) ? (CacheListType) typeObject : CacheListType.OFFLINE; coords = (Geopoint) extras.getParcelable(EXTRAS_COORDS); - // FIXME: this code seems dubious, as adding a fake Geopoint with valid - // coordinates should not be required. - if (coords == null) { - coords = new Geopoint(0.0, 0.0); - } cacheType = Settings.getCacheType(); keyword = extras.getString("keyword"); address = extras.getString("address"); |
