aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/cgeo/geocaching/cgCoord.java2
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java2
-rw-r--r--main/src/cgeo/geocaching/maps/CachesOverlay.java1
3 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgCoord.java b/main/src/cgeo/geocaching/cgCoord.java
index 0c5b5b5..236b8f5 100644
--- a/main/src/cgeo/geocaching/cgCoord.java
+++ b/main/src/cgeo/geocaching/cgCoord.java
@@ -44,7 +44,7 @@ public class cgCoord implements IBasicCache, IWaypoint {
id = waypoint.getId();
disabled = false;
found = false;
- geocode = "";
+ geocode = waypoint.getGeocode();
coords = waypoint.getCoords();
name = waypoint.getName();
coordType = "waypoint";
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index fb70d13..0310dc3 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -442,7 +442,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
if (!CollectionUtils.isEmpty(dirtyCaches)) {
for (String geocode : dirtyCaches) {
- cgCache cache = app.loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB);
+ cgCache cache = app.loadCache(geocode, LoadFlags.LOAD_WAYPOINTS);
// remove to update the cache
caches.remove(cache);
caches.add(cache);
diff --git a/main/src/cgeo/geocaching/maps/CachesOverlay.java b/main/src/cgeo/geocaching/maps/CachesOverlay.java
index 42c121a..0a952bc 100644
--- a/main/src/cgeo/geocaching/maps/CachesOverlay.java
+++ b/main/src/cgeo/geocaching/maps/CachesOverlay.java
@@ -214,6 +214,7 @@ public class CachesOverlay extends AbstractItemizedOverlay {
popupIntent.putExtra("waypoint", coordinate.getId());
+ CGeoMap.markCacheAsDirty(coordinate.getGeocode());
context.startActivity(popupIntent);
} else {
waitDialog.dismiss();