[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:
Roman Romanov 2017-03-23 09:30:44 +04:00
parent 999e53f76d
commit a7136ed2fb

View file

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