[android] Fixed PP opening in details mode

During opening PP in 'details' mode the button's height wasn't taken into account. That's why PP was opening more than it's really neede (70% of screen)
This commit is contained in:
Александр Зацепин 2017-08-28 15:19:09 +03:00 committed by Vladimir Byko-Ianko
parent 9347539693
commit cd2ab8a54a

View file

@ -475,8 +475,8 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
if (isDetailContentScrollable())
translation = mDetailMaxHeight - mButtons.getHeight();
else
translation = mContentHeight > mDetailMaxHeight ? mDetailMaxHeight : mContentHeight;
translation = mContentHeight > mDetailMaxHeight ? mDetailMaxHeight - mButtons.getHeight()
: mContentHeight;
mCurrentAnimator = ValueAnimator.ofFloat(mDetailsScroll.getTranslationY(),
mDetailsScroll.getHeight() - translation);
mCurrentAnimator.addUpdateListener(new UpdateListener());