Simplification

pull/155/head
M66B 6 years ago
parent 2d714f4ade
commit 58ea822110

@ -1395,9 +1395,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
WebView webView = new WebView(context) { WebView webView = new WebView(context) {
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec); super.onMeasure(widthMeasureSpec, heightMeasureSpec);
int height = getMeasuredHeight(); setMeasuredDimension(
if (height < tvBody.getMinHeight()) getMeasuredWidth(),
setMeasuredDimension(getMeasuredWidth(), tvBody.getMinHeight()); Math.max(tvBody.getMinHeight(), getMeasuredHeight()));
} }
}; };

@ -569,7 +569,6 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_min="60dp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBody" /> app:layout_constraintTop_toBottomOf="@id/tvBody" />

Loading…
Cancel
Save