[android] #4517 - fix two tap gestures when zoomGesturesEnabled = false

This commit is contained in:
Bastien Mayard
2016-03-29 18:19:30 +02:00
committed by Tobrun
parent 9fc8cf39a8
commit b347451022

View File

@@ -1429,7 +1429,9 @@ public class MapView extends FrameLayout {
case MotionEvent.ACTION_POINTER_DOWN:
// Second pointer down
mTwoTap = event.getPointerCount() == 2;
mTwoTap = event.getPointerCount() == 2
&& !mDestroyed
&& mMapboxMap.getUiSettings().isZoomGesturesEnabled();
if (mTwoTap) {
// Confirmed 2nd Finger Down
trackGestureEvent(MapboxEvent.GESTURE_TWO_FINGER_SINGLETAP, event.getX(), event.getY());