aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cgeo/geocaching/mapcommon/cgeomap.java6
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;