From 083edab0968cc493f428e1cc1c2f05af65ee9b5f Mon Sep 17 00:00:00 2001 From: Portree-Kid Date: Thu, 19 Jul 2012 18:59:35 +0200 Subject: Removed a wrong setting of cachesCnt. It should always contain the number of visible caches. Fixes #1730 --- main/src/cgeo/geocaching/maps/CGeoMap.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index c4c2dc7..062f02f 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 overlaysCache = new SparseArray(); + /** Count of caches currently visible */ private int cachesCnt = 0; /** List of caches in the viewport */ private LeastRecentlyUsedSet caches = null; @@ -1316,8 +1317,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); -- cgit v1.1