forked from organicmaps/organicmaps
[android] Fixed a bug associated with an incomprehensible onScrollChanged call from the ObservableScrollView which resulted in the closing of Place Page at the time of its opening.
This commit is contained in:
parent
999e53f76d
commit
a7136ed2fb
1 changed files with 4 additions and 1 deletions
|
@ -136,7 +136,10 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
|
|||
|
||||
if (mCurrentScrollY > 0 && mDetailsScroll.getTranslationY() > 0)
|
||||
{
|
||||
mPlacePage.setState(State.HIDDEN);
|
||||
if (mState != State.PREVIEW)
|
||||
mPlacePage.setState(State.HIDDEN);
|
||||
else
|
||||
mDetailsScroll.scrollTo(0, 0);
|
||||
}
|
||||
refreshToolbarVisibility();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue