[android] fix sending more than once double tap event on a single double tap gesture (#10854)

This commit is contained in:
Pablo Guardiola
2018-01-08 10:32:57 +01:00
committed by GitHub
parent 4731e0c7f1
commit cc25d6911b

View File

@@ -344,13 +344,12 @@ final class MapGestureDetector {
// Zoom in on gesture
transform.zoom(true, new PointF(e.getX(), e.getY()));
}
MapboxTelemetry.getInstance().pushEvent(MapboxEventWrapper.buildMapClickEvent(
getLocationFromGesture(e.getX(), e.getY()),
MapboxEvent.GESTURE_DOUBLETAP, transform));
break;
}
MapboxTelemetry.getInstance().pushEvent(MapboxEventWrapper.buildMapClickEvent(
getLocationFromGesture(e.getX(), e.getY()),
MapboxEvent.GESTURE_DOUBLETAP, transform));
return true;
}