aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo
diff options
context:
space:
mode:
authorPortree-Kid <keith.paterson@gmx.de>2012-07-20 15:24:07 +0200
committerPortree-Kid <keith.paterson@gmx.de>2012-07-20 15:24:07 +0200
commit7c70254fd4a9bbd741cc8416fada205e4501aa6e (patch)
treef95676512aa7984d1172b7d9187b39c1a5f12632 /main/src/cgeo
parent907a797d8980893659fdc9fdae5d6419d09be7f1 (diff)
parent51883312e45c97f52aa74f669c1bab96643c450a (diff)
downloadcgeo-7c70254fd4a9bbd741cc8416fada205e4501aa6e.zip
cgeo-7c70254fd4a9bbd741cc8416fada205e4501aa6e.tar.gz
cgeo-7c70254fd4a9bbd741cc8416fada205e4501aa6e.tar.bz2
Merge remote-tracking branch 'upstream/master' into Fix1866
Diffstat (limited to 'main/src/cgeo')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 3731f9d..c4d2192 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -177,6 +177,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
private static final int[][] INSET_PERSONALNOTE = { { 0, 28, 21, 0 }, { 0, 25, 19, 0 } }; // bottom left, 12x12 / 26x26
private SparseArray<LayerDrawable> overlaysCache = new SparseArray<LayerDrawable>();
+ /** Count of caches currently visible */
private int cachesCnt = 0;
/** List of caches in the viewport */
private LeastRecentlyUsedSet<cgCache> caches = null;
@@ -1319,8 +1320,6 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
overlayCaches.updateItems(itemsToDisplay);
displayHandler.sendEmptyMessage(INVALIDATE_MAP);
- cachesCnt = cachesToDisplay.size();
-
} else {
overlayCaches.updateItems(itemsToDisplay);
displayHandler.sendEmptyMessage(INVALIDATE_MAP);