aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2011-09-08 09:24:41 +0200
committerrsudev <rasch@munin-soft.de>2011-09-08 09:24:41 +0200
commitf0f41ecdfbb04656ffcf5f83fbf8903130694b0d (patch)
treeff06579d968ce7eeb108eeb9d262a7068d91aebd /src
parentf3643433b83438055503949d4608f012bd0a58ea (diff)
downloadcgeo-f0f41ecdfbb04656ffcf5f83fbf8903130694b0d.zip
cgeo-f0f41ecdfbb04656ffcf5f83fbf8903130694b0d.tar.gz
cgeo-f0f41ecdfbb04656ffcf5f83fbf8903130694b0d.tar.bz2
First fix for #269, #339, #372
Diffstat (limited to 'src')
-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;