From f8eb93223027b3799a758d65c0e8e3af3ab20567 Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Fri, 27 Jul 2018 17:58:24 +0300 Subject: [PATCH] [android] Added LinearLayout instead of Constraint --- android/src/com/mapswithme/maps/widget/PlaceholderView.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/PlaceholderView.java b/android/src/com/mapswithme/maps/widget/PlaceholderView.java index 6debaa2d1e..f27feb3f67 100644 --- a/android/src/com/mapswithme/maps/widget/PlaceholderView.java +++ b/android/src/com/mapswithme/maps/widget/PlaceholderView.java @@ -145,8 +145,6 @@ public class PlaceholderView extends LinearLayout int childrenTextTotalHeight = calcTotalTextChildrenHeight(widthMeasureSpec, heightMeasureSpec); final int defHeight = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec); - final int defWidth = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec); - MarginLayoutParams imgParams = (MarginLayoutParams) mImage.getLayoutParams(); int potentialHeight = defHeight - getPaddingBottom() - getPaddingTop() - childrenTextTotalHeight - @@ -165,7 +163,8 @@ public class PlaceholderView extends LinearLayout UiUtils.showIf(isImageSpaceAllowed, mImage); final int height = childrenTotalHeight + getPaddingTop() + getPaddingBottom(); - setMeasuredDimension(defWidth, height); + final int width = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec); + setMeasuredDimension(width, height); } private int calcTotalTextChildrenHeight(int widthMeasureSpec, int heightMeasureSpec)