diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2015-06-15 19:56:44 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:51:22 +0300 |
commit | fed0c730650468328ff874722ea275c8f75f3d06 (patch) | |
tree | abc3fd12a4522d5a96e863f431a551d0b8bae259 /android/src | |
parent | 765fad6d4e669a7eec6bc23bd05849e3870c5944 (diff) |
Fix for scroll in PP after bookmark is opened.
Diffstat (limited to 'android/src')
-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); } } }); |