aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/res/drawable-hdpi/marker_found_offline.pngbin0 -> 920 bytes
-rw-r--r--main/res/drawable/marker_found_offline.pngbin0 -> 646 bytes
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java5
3 files changed, 5 insertions, 0 deletions
diff --git a/main/res/drawable-hdpi/marker_found_offline.png b/main/res/drawable-hdpi/marker_found_offline.png
new file mode 100644
index 0000000..8ff4b68
--- /dev/null
+++ b/main/res/drawable-hdpi/marker_found_offline.png
Binary files differ
diff --git a/main/res/drawable/marker_found_offline.png b/main/res/drawable/marker_found_offline.png
new file mode 100644
index 0000000..823e972
--- /dev/null
+++ b/main/res/drawable/marker_found_offline.png
Binary files differ
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 687752c..919aeff 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -1849,6 +1849,7 @@ public class CGeoMap extends AbstractMap implements OnDragListener, ViewFactory
.append(cache.isFound())
.append(cache.hasUserModifiedCoords())
.append(cache.getPersonalNote())
+ .append(cache.isLogOffline())
.toHashCode();
LayerDrawable ldFromCache = CGeoMap.overlaysCache.get(hashcode);
@@ -1885,6 +1886,10 @@ public class CGeoMap extends AbstractMap implements OnDragListener, ViewFactory
if (cache.isFound()) {
layers.add(getResources().getDrawable(R.drawable.marker_found));
insets.add(INSET_FOUND[resolution]);
+ // if not, perhaps logged offline
+ } else if (cache.isLogOffline()) {
+ layers.add(getResources().getDrawable(R.drawable.marker_found_offline));
+ insets.add(INSET_FOUND[resolution]);
}
// user modified coords
if (cache.hasUserModifiedCoords()) {