diff options
| author | M@®k <github@blafoo.de> | 2012-03-03 01:12:02 -0800 |
|---|---|---|
| committer | M@®k <github@blafoo.de> | 2012-03-03 01:12:02 -0800 |
| commit | cf88273bd153ddc46c0f3496c7f86343369ff176 (patch) | |
| tree | 3d4320871d31650b3018d2c79835a1b9d84ab8a3 | |
| parent | 834a683d0f63b119587ab709f6f9ed4230f4dae8 (diff) | |
| parent | 83f4151cb3aa4acc2b01a1f532ae258c3cb2dfcf (diff) | |
| download | cgeo-cf88273bd153ddc46c0f3496c7f86343369ff176.zip cgeo-cf88273bd153ddc46c0f3496c7f86343369ff176.tar.gz cgeo-cf88273bd153ddc46c0f3496c7f86343369ff176.tar.bz2 | |
Merge pull request #1218 from campbeb/fix1156
Fix #1156 - Refresh waypoints on map after being edited
| -rw-r--r-- | main/src/cgeo/geocaching/cgCoord.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CachesOverlay.java | 1 |
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(); |
