aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsudev <rsudev@googlemail.com>2012-02-12 19:52:49 +0100
committerrsudev <rsudev@googlemail.com>2012-02-12 19:52:49 +0100
commit1639e1617ad7a77b9b8145942e191b960d05826e (patch)
tree13af6fc0d6ffb8d6691fc60047a1f1e32db73d5e
parent802b2bdd8f43b32ea6588cca14d281a40aab0914 (diff)
downloadcgeo-1639e1617ad7a77b9b8145942e191b960d05826e.zip
cgeo-1639e1617ad7a77b9b8145942e191b960d05826e.tar.gz
cgeo-1639e1617ad7a77b9b8145942e191b960d05826e.tar.bz2
Fixes #790
- applies a patch to mapsforge to fix the hittest order (mapsforge issue 192)
-rw-r--r--main/libs/mapsforge-map-0.2.4.jarbin397479 -> 397471 bytes
-rw-r--r--mapsforge_patches/ItemizedOverlay_issue.patch14
2 files changed, 14 insertions, 0 deletions
diff --git a/main/libs/mapsforge-map-0.2.4.jar b/main/libs/mapsforge-map-0.2.4.jar
index 365b9d1..858ef3e 100644
--- a/main/libs/mapsforge-map-0.2.4.jar
+++ b/main/libs/mapsforge-map-0.2.4.jar
Binary files differ
diff --git a/mapsforge_patches/ItemizedOverlay_issue.patch b/mapsforge_patches/ItemizedOverlay_issue.patch
new file mode 100644
index 0000000..6ef6f7f
--- /dev/null
+++ b/mapsforge_patches/ItemizedOverlay_issue.patch
@@ -0,0 +1,14 @@
+Index: mapsforge/src/org/mapsforge/android/maps/ItemizedOverlay.java
+===================================================================
+--- mapsforge/src/org/mapsforge/android/maps/ItemizedOverlay.java (revision 1216)
++++ mapsforge/src/org/mapsforge/android/maps/ItemizedOverlay.java (working copy)
+@@ -140,7 +140,8 @@
+
+ synchronized (this.visibleItems) {
+ // iterate over all visible items
+- for (Integer itemIndex : this.visibleItems) {
++ for (int i = this.visibleItems.size() - 1; i >= 0; --i) {
++ Integer itemIndex = this.visibleItems.get(i);
+ // get the current item
+ checkOverlayItem = createItem(itemIndex.intValue());
+ if (checkOverlayItem == null) {