aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-03-04 14:42:02 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-03-04 14:42:02 +0000
commite841b948fc5290c921e4974f4aa1b93cb0825d83 (patch)
treee6d899c8ad00aa13452b584fea84f3aabb88ac46
parente3be46bdee08ad5b336e143861790b705defc0bc (diff)
downloadsouthamptonuniversitymap-e841b948fc5290c921e4974f4aa1b93cb0825d83.tar
southamptonuniversitymap-e841b948fc5290c921e4974f4aa1b93cb0825d83.tar.gz
Bug fix stoping double tapping on a disabled building overlay, working.
-rw-r--r--src/net/cbaines/suma/BuildingNumOverlay.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/cbaines/suma/BuildingNumOverlay.java b/src/net/cbaines/suma/BuildingNumOverlay.java
index c2a9d7c..f11a166 100644
--- a/src/net/cbaines/suma/BuildingNumOverlay.java
+++ b/src/net/cbaines/suma/BuildingNumOverlay.java
@@ -228,6 +228,9 @@ public class BuildingNumOverlay extends Overlay implements Preferences, OnShared
}
public boolean onDoubleTap(final MotionEvent event, final MapView mapView) {
+ if (!this.isEnabled())
+ return false;
+
Building building = getSelectedItem(event, mapView);
if (building == null) {