diff options
Diffstat (limited to 'android/src/com/mapswithme/maps/widget')
-rw-r--r-- | android/src/com/mapswithme/maps/widget/placepage/BottomPlacePageAnimationController.java | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } }); |