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); } }