From a7136ed2fbeb174909fd3a4252c3c894a71e21be Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Thu, 23 Mar 2017 09:30:44 +0400 Subject: [PATCH] [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. --- .../widget/placepage/BottomPlacePageAnimationController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java b/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java index 0483f0b575..61d097c937 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java +++ b/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java @@ -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(); }