diff options
| author | Marco Jacob <mjacob@union06.de> | 2013-02-11 13:33:41 -0800 |
|---|---|---|
| committer | Marco Jacob <mjacob@union06.de> | 2013-02-11 13:33:41 -0800 |
| commit | 70251c24f5fafeeb150a2142249245e9515f560b (patch) | |
| tree | 7344119fcf71e3657f00ed011cc3938fed04378d /main/src/cgeo/geocaching | |
| parent | 5536a37f79649656563238d2dfe21a7e6743b87e (diff) | |
| parent | 277c86c9b9df5b19c8e9602b8497370fed7e421b (diff) | |
| download | cgeo-70251c24f5fafeeb150a2142249245e9515f560b.zip cgeo-70251c24f5fafeeb150a2142249245e9515f560b.tar.gz cgeo-70251c24f5fafeeb150a2142249245e9515f560b.tar.bz2 | |
Merge pull request #2470 from marco-jacob/updateMapIcons
fixes #2436 - new colletion type needs remove on old cache instance
Diffstat (limited to 'main/src/cgeo/geocaching')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |
