[android] Extend Place Page view with statusbar. Fixed click detection in FULLSCREEN state.

This commit is contained in:
Roman Romanov 2016-11-11 09:20:03 +04:00 committed by Ilya Grechuhin
parent f17ff7763c
commit 5a21f5141f

View file

@ -40,6 +40,7 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
BottomPlacePageAnimationController(@NonNull PlacePageView placePage)
{
super(placePage);
UiUtils.extendViewMarginWithStatusBar(mDetailsScroll);
mLayoutToolbar = (LinearLayout) mPlacePage.findViewById(R.id.toolbar_layout);
if (mLayoutToolbar == null)
return;
@ -91,6 +92,10 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
return true;
break;
case MotionEvent.ACTION_UP:
if (mIsGestureStartedInsideView)
mGestureDetector.onTouchEvent(event);
break;
}
return false;