aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeonavigate.java
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/cgeonavigate.java
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/cgeonavigate.java')
-rw-r--r--main/src/cgeo/geocaching/cgeonavigate.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/cgeonavigate.java b/main/src/cgeo/geocaching/cgeonavigate.java
index 838bcc3..370b859 100644
--- a/main/src/cgeo/geocaching/cgeonavigate.java
+++ b/main/src/cgeo/geocaching/cgeonavigate.java
@@ -2,6 +2,7 @@ package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.geopoint.Geopoint;
+import cgeo.geocaching.maps.CGeoMap;
import org.apache.commons.lang3.StringUtils;
@@ -242,12 +243,7 @@ public class cgeonavigate extends AbstractActivity {
int id = item.getItemId();
if (id == 0) {
- Intent mapIntent = new Intent(this, Settings.getMapFactory().getMapClass());
- mapIntent.putExtra("detail", false);
- mapIntent.putExtra("latitude", dstCoords.getLatitude());
- mapIntent.putExtra("longitude", dstCoords.getLongitude());
-
- startActivity(mapIntent);
+ CGeoMap.startActivityCoords(this, dstCoords, null);
} else if (id == 1) {
boolean oldSetting = Settings.isUseCompass();
Settings.setUseCompass(!oldSetting);