forked from organicmaps/organicmaps
[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:
parent
9347539693
commit
cd2ab8a54a
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue