From 72de434aab7b6617f05997f442d4e7482b97aed0 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 1 Jul 2014 10:21:37 -0400 Subject: [PATCH] [android] Fixed invalid requestLayout calls --- android/src/com/mapswithme/maps/widget/MapInfoView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/MapInfoView.java b/android/src/com/mapswithme/maps/widget/MapInfoView.java index 1ba3617e69..297ec1c027 100644 --- a/android/src/com/mapswithme/maps/widget/MapInfoView.java +++ b/android/src/com/mapswithme/maps/widget/MapInfoView.java @@ -585,14 +585,14 @@ public class MapInfoView extends LinearLayout { mMaxPlacePageHeight = parent.getHeight() / 2; final ViewGroup.LayoutParams lp = mPlacePageGroup.getLayoutParams(); - if (lp != null) + if (lp != null && lp.height != mMaxPlacePageHeight) { lp.height = mMaxPlacePageHeight; mPlacePageGroup.setLayoutParams(lp); + requestLayout(); + invalidate(); } } - requestLayout(); - invalidate(); } @Override