aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2011-10-08 16:07:02 +0200
committerkoem <koem@petoria.de>2011-10-08 16:07:02 +0200
commit6e950c529ab6d1df27841e88b4237180a2465b79 (patch)
treea46527355078d697536ee6a7ab79d5e708ade2d4 /main/src/cgeo/geocaching/apps
parent9731ffa193c81c77ad64cb06c7574098113fd316 (diff)
downloadcgeo-6e950c529ab6d1df27841e88b4237180a2465b79.zip
cgeo-6e950c529ab6d1df27841e88b4237180a2465b79.tar.gz
cgeo-6e950c529ab6d1df27841e88b4237180a2465b79.tar.bz2
always use WaypointType
Diffstat (limited to 'main/src/cgeo/geocaching/apps')
-rw-r--r--main/src/cgeo/geocaching/apps/AbstractLocusApp.java4
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java
index 6213899..20810d5 100644
--- a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java
+++ b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java
@@ -1,8 +1,8 @@
package cgeo.geocaching.apps;
import cgeo.geocaching.R;
-import cgeo.geocaching.cgCache;
import cgeo.geocaching.Settings;
+import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgWaypoint;
import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.enumerations.CacheType;
@@ -148,7 +148,7 @@ public abstract class AbstractLocusApp extends AbstractApp {
PointGeocachingDataWaypoint wp = new PointGeocachingDataWaypoint();
wp.code = waypoint.geocode;
wp.name = waypoint.name;
- String locusWpId = toLocusId(WaypointType.FIND_BY_ID.get(waypoint.type));
+ String locusWpId = toLocusId(waypoint.typee);
if (locusWpId != null) {
wp.type = locusWpId;
}
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java b/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
index 57e67a5..bd432c0 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/InternalMap.java
@@ -1,9 +1,9 @@
package cgeo.geocaching.apps.cache.navi;
import cgeo.geocaching.R;
+import cgeo.geocaching.Settings;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgGeo;
-import cgeo.geocaching.Settings;
import cgeo.geocaching.cgWaypoint;
import cgeo.geocaching.enumerations.WaypointType;
import cgeo.geocaching.geopoint.Geopoint;
@@ -37,7 +37,7 @@ class InternalMap extends AbstractInternalMap implements
if (waypoint != null) {
mapIntent.putExtra("latitude", waypoint.coords.getLatitude());
mapIntent.putExtra("longitude", waypoint.coords.getLongitude());
- mapIntent.putExtra("wpttype", waypoint.type);
+ mapIntent.putExtra("wpttype", waypoint.typee.id);
} else if (coords != null) {
mapIntent.putExtra("latitude", coords.getLatitude());
mapIntent.putExtra("longitude", coords.getLongitude());