aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/cachelist
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2011-10-15 08:47:03 +0200
committerBananeweizen <bananeweizen@gmx.de>2011-10-15 08:47:03 +0200
commit16c0bb033e858338108653ee95eeff9f80e1f678 (patch)
treeadff6a5f76a9d69088ed9dd86a8cbab86602f894 /main/src/cgeo/geocaching/apps/cachelist
parent578e748cc4e829d1f2af34dd371987b54d9b5771 (diff)
downloadcgeo-16c0bb033e858338108653ee95eeff9f80e1f678.zip
cgeo-16c0bb033e858338108653ee95eeff9f80e1f678.tar.gz
cgeo-16c0bb033e858338108653ee95eeff9f80e1f678.tar.bz2
new: map title describes what is shown, fixes #483
* shows geo code in case of caches * shows list title in case of lists (works also for search) * moved all map invocations into map class * refactored extras keys into String constants
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cachelist')
-rw-r--r--main/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/main/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java b/main/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
index 75997e0..6de5c13 100644
--- a/main/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
+++ b/main/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
@@ -3,12 +3,11 @@ package cgeo.geocaching.apps.cachelist;
import cgeo.geocaching.R;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgGeo;
-import cgeo.geocaching.Settings;
import cgeo.geocaching.apps.AbstractApp;
+import cgeo.geocaching.maps.CGeoMap;
import android.app.Activity;
import android.content.Context;
-import android.content.Intent;
import android.content.res.Resources;
import java.util.List;
@@ -27,12 +26,7 @@ class InternalCacheListMap extends AbstractApp implements CacheListApp {
@Override
public boolean invoke(cgGeo geo, List<cgCache> caches, Activity activity, Resources res, final UUID searchId) {
- Intent mapIntent = new Intent(activity, Settings.getMapFactory()
- .getMapClass());
- mapIntent.putExtra("detail", false); // this is the main difference to the activity for a single point
- mapIntent.putExtra("searchid", searchId.toString());
-
- activity.startActivity(mapIntent);
+ CGeoMap.startActivitySearch(activity, searchId, null, false);
return true;
}
}