aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2012-02-24 23:37:16 +0100
committerrsudev <rasch@munin-soft.de>2012-02-24 23:37:24 +0100
commitae07af70509a1276a9508fbfbda0170b6ae0d623 (patch)
tree61fe1c5e45d6ab5fe07317672cbad1ce52585ea1 /main/src/cgeo/geocaching/maps
parent1453862cc743c7293e4fde0573a963227682079d (diff)
downloadcgeo-ae07af70509a1276a9508fbfbda0170b6ae0d623.zip
cgeo-ae07af70509a1276a9508fbfbda0170b6ae0d623.tar.gz
cgeo-ae07af70509a1276a9508fbfbda0170b6ae0d623.tar.bz2
Fixes #934, Marker for stored caches
- Adds a small floppy icon in the 'own' position on stored, not own caches
Diffstat (limited to 'main/src/cgeo/geocaching/maps')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 004118f..0038807 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -1855,6 +1855,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
.append(cache.hasUserModifiedCoords())
.append(cache.getPersonalNote())
.append(cache.isLogOffline())
+ .append(cache.getListId() > 0)
.toHashCode();
LayerDrawable ldFromCache = CGeoMap.overlaysCache.get(hashcode);
@@ -1886,6 +1887,10 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
if ( cache.isOwn() ) {
layers.add(getResources().getDrawable(R.drawable.marker_own));
insets.add(INSET_OWN[resolution]);
+ // if not, checked if stored
+ } else if (cache.getListId() > 0) {
+ layers.add(getResources().getDrawable(R.drawable.marker_stored));
+ insets.add(INSET_OWN[resolution]);
}
// found
if (cache.isFound()) {