[android] Fixed Place Page gesture detection.

This commit is contained in:
Roman Romanov 2016-11-15 09:15:09 +04:00 committed by Vladimir Byko-Ianko
parent 401aa715a6
commit e91b246daf

View file

@ -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;
}