diff options
| author | c:geo <cgeo@cgeo.org> | 2011-09-08 00:49:40 -0700 |
|---|---|---|
| committer | c:geo <cgeo@cgeo.org> | 2011-09-08 00:49:40 -0700 |
| commit | edde91aef1455f0a7650933c68f7289d0d72bac7 (patch) | |
| tree | ff06579d968ce7eeb108eeb9d262a7068d91aebd /src | |
| parent | f3643433b83438055503949d4608f012bd0a58ea (diff) | |
| parent | f0f41ecdfbb04656ffcf5f83fbf8903130694b0d (diff) | |
| download | cgeo-edde91aef1455f0a7650933c68f7289d0d72bac7.zip cgeo-edde91aef1455f0a7650933c68f7289d0d72bac7.tar.gz cgeo-edde91aef1455f0a7650933c68f7289d0d72bac7.tar.bz2 | |
Merge pull request #390 from rsudev/list_to_map_fix
First fix for #269, #339, #372
Diffstat (limited to 'src')
| -rw-r--r-- | src/cgeo/geocaching/mapcommon/cgeomap.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cgeo/geocaching/mapcommon/cgeomap.java b/src/cgeo/geocaching/mapcommon/cgeomap.java index c795215..2798a61 100644 --- a/src/cgeo/geocaching/mapcommon/cgeomap.java +++ b/src/cgeo/geocaching/mapcommon/cgeomap.java @@ -7,6 +7,8 @@ import java.util.Locale; import java.util.Map; import java.util.UUID; +import org.apache.commons.lang3.StringUtils; + import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; @@ -1074,7 +1076,7 @@ public class cgeomap extends MapBase implements OnDragListener, ViewFactory { // stage 1 - pull and render from the DB only - if (fromDetailIntent) { + if (fromDetailIntent || StringUtils.isNotEmpty(searchIdIntent)) { searchId = UUID.fromString(searchIdIntent); } else { if (!live || settings.maplive == 0) { @@ -1667,7 +1669,7 @@ public class cgeomap extends MapBase implements OnDragListener, ViewFactory { if (geocodeCenter != null) { viewport = app.getBounds(geocodeCenter); } else { - viewport = app.getBounds(searchIdCenter); + viewport = app.getBounds(UUID.fromString(searchIdCenter)); } if (viewport == null) return; |
