From c4981d93596236222b6f7dd2d52e7f1577e4cb66 Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 29 Sep 2021 18:39:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E5=92=8C=E9=99=90=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function/check/view/CheckInfoRecyclerView.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoRecyclerView.java b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoRecyclerView.java index b3cfa3c41e..c00ff7859d 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoRecyclerView.java +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoRecyclerView.java @@ -33,16 +33,10 @@ public class CheckInfoRecyclerView extends RecyclerView { @Override protected void onMeasure(int widthSpec, int heightSpec) { super.onMeasure(widthSpec, heightSpec); - boolean needLimit = false; - if (maxHeight >= 0) { - needLimit = true; - } - if (needLimit) { - int limitHeight = getMeasuredHeight(); - if (getMeasuredHeight() > maxHeight) { - limitHeight = maxHeight; - } - setMeasuredDimension(maxWeight, maxHeight); + int limitHeight = getMeasuredHeight(); + if (getMeasuredHeight() > maxHeight) { + limitHeight = maxHeight; } + setMeasuredDimension(maxWeight, limitHeight); } }