aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-07-19 23:06:48 -0700
committerBananeweizen <Bananeweizen@gmx.de>2012-07-19 23:06:48 -0700
commit51883312e45c97f52aa74f669c1bab96643c450a (patch)
treea2ff7e9ef51bf36db4081b7c75be2f92ea03a908
parent9875e2b489a6a7fa3c2067d747a8c1edb6925b60 (diff)
parent083edab0968cc493f428e1cc1c2f05af65ee9b5f (diff)
downloadcgeo-51883312e45c97f52aa74f669c1bab96643c450a.zip
cgeo-51883312e45c97f52aa74f669c1bab96643c450a.tar.gz
cgeo-51883312e45c97f52aa74f669c1bab96643c450a.tar.bz2
Merge pull request #1898 from Portree-Kid/fix1730
Removed a wrong setting of cachesCnt. It should always contain the
-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 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<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;
@@ -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);