From fed0c730650468328ff874722ea275c8f75f3d06 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Mon, 15 Jun 2015 19:56:44 +0300 Subject: Fix for scroll in PP after bookmark is opened. --- .../maps/widget/placepage/BottomPlacePageAnimationController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'android/src/com/mapswithme/maps/widget/placepage') diff --git a/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java b/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java index 860dd7ed5b..31bb94b0e3 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java +++ b/android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java @@ -224,8 +224,8 @@ public class BottomPlacePageAnimationController extends BasePlacePageAnimationCo ValueAnimator animator; final float detailsFullHeight = mDetails.getChildAt(0).getHeight(); final float detailsScreenHeight = mDetails.getHeight(); - final float bookmarkHeight = mBookmarkDetails.getHeight(); - final float bookmarkScreenHeight = bookmarkHeight - (detailsFullHeight - detailsScreenHeight); + final float bookmarkFullHeight = mBookmarkDetails.getHeight(); + final float bookmarkScreenHeight = bookmarkFullHeight - (detailsFullHeight - detailsScreenHeight); if (currentState == State.PREVIEW) animator = ValueAnimator.ofFloat(detailsScreenHeight, bookmarkScreenHeight); @@ -245,8 +245,8 @@ public class BottomPlacePageAnimationController extends BasePlacePageAnimationCo refreshToolbarVisibility(); mIsPreviewVisible = mIsPlacePageVisible = true; notifyVisibilityListener(); - if (currentState == State.BOOKMARK) - mBookmarkDetails.setVisibility(View.INVISIBLE); + mDetails.scrollTo(0, 0); + mBookmarkDetails.setVisibility(View.INVISIBLE); } } }); -- cgit v1.2.3