diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-03-04 14:42:02 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-03-04 14:42:02 +0000 |
commit | e841b948fc5290c921e4974f4aa1b93cb0825d83 (patch) | |
tree | e6d899c8ad00aa13452b584fea84f3aabb88ac46 | |
parent | e3be46bdee08ad5b336e143861790b705defc0bc (diff) | |
download | southamptonuniversitymap-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.java | 3 |
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) { |