diff options
| author | Portree-Kid <keith.paterson@gmx.de> | 2013-02-23 21:55:14 +0100 |
|---|---|---|
| committer | Portree-Kid <keith.paterson@gmx.de> | 2013-02-23 22:33:44 +0100 |
| commit | 6067d5dcbf52a59f85c9f9921cef5d756117d0f8 (patch) | |
| tree | 53ea58ed78fd5cf97ce73856578dcdd952d938c3 | |
| parent | a883000c3167215b36fce8a3732f8858e812e976 (diff) | |
| download | cgeo-6067d5dcbf52a59f85c9f9921cef5d756117d0f8.zip cgeo-6067d5dcbf52a59f85c9f9921cef5d756117d0f8.tar.gz cgeo-6067d5dcbf52a59f85c9f9921cef5d756117d0f8.tar.bz2 | |
Small glitch added isLiveEnabled
| -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 76dcbc0..476d523 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1117,7 +1117,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto countVisibleCaches(); if (cachesCnt < Settings.getWayPointsThreshold() || geocodeIntent != null) { waypoints.clear(); - if (mapMode == MapMode.LIVE || mapMode == MapMode.COORDS) { + if (isLiveEnabled || mapMode == MapMode.LIVE || mapMode == MapMode.COORDS) { //All visible waypoints CacheType type = Settings.getCacheType(); Set<Waypoint> waypointsInViewport = cgData.loadWaypoints(viewport, excludeMine, excludeDisabled, type); @@ -1125,6 +1125,8 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto } else { + // we don't want to see any stale + waypoints.clear(); //All waypoints from the viewed caches for (Geocache c : caches.getAsList()) { waypoints.addAll(c.getWaypoints()); |
