diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java index d191d34c7e1..f5610f5d93c 100644 --- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java +++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java @@ -1032,7 +1032,11 @@ public boolean onDoubleTap(MotionEvent e) { public boolean onSingleTapUp(MotionEvent e) { // Cancel any animation mNativeMapView.cancelTransitions(); + return true; + } + @Override + public boolean onSingleTapConfirmed(MotionEvent e) { // Open / Close InfoWindow float x = e.getX(); @@ -1125,16 +1129,9 @@ else if (mSelectedAnnotation != null) } } - performClick(); return true; } - // Called for single taps after a delay - @Override - public boolean onSingleTapConfirmed(MotionEvent e) { - return false; - } - // Called for a long press @Override public void onLongPress(MotionEvent e) {