From 277c86c9b9df5b19c8e9602b8497370fed7e421b Mon Sep 17 00:00:00 2001 From: Marco Jacob Date: Mon, 11 Feb 2013 22:31:25 +0100 Subject: fixes #2436 - new colletion type needs remove on old cache instance --- main/src/cgeo/geocaching/maps/CGeoMap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main/src/cgeo/geocaching/maps/CGeoMap.java') diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 88cf2dc..921412b 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -8,10 +8,10 @@ import cgeo.geocaching.SearchResult; import cgeo.geocaching.Settings; import cgeo.geocaching.StoredList; import cgeo.geocaching.Waypoint; -import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.cgData; import cgeo.geocaching.cgeoapplication; import cgeo.geocaching.cgeocaches; +import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.connector.ConnectorFactory; import cgeo.geocaching.connector.gc.Login; import cgeo.geocaching.enumerations.CacheType; @@ -494,6 +494,8 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto for (String geocode : dirtyCaches) { Geocache cache = cgData.loadCache(geocode, LoadFlags.LOAD_WAYPOINTS); if (cache != null) { + // new collection type needs to remove first + caches.remove(cache); // re-add to update the freshness caches.add(cache); } -- cgit v1.1