diff options
author | rsudev <rasch@munin-soft.de> | 2012-02-24 23:37:16 +0100 |
---|---|---|
committer | rsudev <rasch@munin-soft.de> | 2012-02-24 23:37:24 +0100 |
commit | ae07af70509a1276a9508fbfbda0170b6ae0d623 (patch) | |
tree | 61fe1c5e45d6ab5fe07317672cbad1ce52585ea1 | |
parent | 1453862cc743c7293e4fde0573a963227682079d (diff) | |
download | cgeo-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
-rw-r--r-- | main/res/drawable-hdpi/marker_stored.png | bin | 0 -> 663 bytes | |||
-rw-r--r-- | main/res/drawable/marker_stored.png | bin | 0 -> 483 bytes | |||
-rw-r--r-- | main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 5 |
4 files changed, 6 insertions, 0 deletions
diff --git a/main/res/drawable-hdpi/marker_stored.png b/main/res/drawable-hdpi/marker_stored.png Binary files differnew file mode 100644 index 0000000..6447bbf --- /dev/null +++ b/main/res/drawable-hdpi/marker_stored.png diff --git a/main/res/drawable/marker_stored.png b/main/res/drawable/marker_stored.png Binary files differnew file mode 100644 index 0000000..6689e26 --- /dev/null +++ b/main/res/drawable/marker_stored.png diff --git a/main/res/values/strings.xml b/main/res/values/strings.xml index cccb474..ef1ceed 100644 --- a/main/res/values/strings.xml +++ b/main/res/values/strings.xml @@ -1002,6 +1002,7 @@ · <a href="http://thenounproject.com/">The Noun Project</a> (basis for attribute icons)\n · <a href="http://commons.apache.org/">The Apache Commons Project</a>\n · <a href="http://androidicons.com/">Android Icons</a> (<a href="https://creativecommons.org/licenses/by/3.0/">CC-BY 3.0</a>)\n + · <a href="http://rrze-icon-set.berlios.de/index.html">RRZE Icon set</a> (<a href="http://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA 3.0</a>)\n </string> <!-- changelog --> 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()) { |