From 4622343d818b9cbec58bbcd1b73ee1111f3bdfc0 Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Tue, 15 Nov 2016 09:15:09 +0400 Subject: [android] Fixed Place Page gesture detection. --- .../maps/widget/placepage/BottomPlacePageAnimationController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java b/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java index fa8ab4fecf..0197d3cf85 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java +++ b/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java @@ -82,6 +82,7 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle mIsDragging = false; mIsGestureFinished = false; mDownCoord = event.getY(); + mGestureDetector.onTouchEvent(event); break; case MotionEvent.ACTION_MOVE: if (!mIsGestureStartedInsideView) @@ -93,7 +94,8 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle break; case MotionEvent.ACTION_UP: - if (mIsGestureStartedInsideView) + final boolean isInside = UiUtils.isViewTouched(event, mDetailsScroll); + if (isInside && mIsGestureStartedInsideView) mGestureDetector.onTouchEvent(event); break; } -- cgit v1.2.3