From 3972b6fa17d6053bc43c8cfd26ab4b52eb12d3a3 Mon Sep 17 00:00:00 2001 From: chenjuntao Date: Wed, 8 Feb 2023 14:26:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=9B=9E=E5=A4=8D=E5=88=97=E8=A1=A8=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E9=AB=98=E4=BA=AE=E5=8F=AF=E5=A4=8D=E5=88=B6=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20https://jira.shanqu.cc/browse/GHZS-1207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gamedetail/rating/RatingReplyAdapter.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/gh/gamecenter/gamedetail/rating/RatingReplyAdapter.kt b/app/src/main/java/com/gh/gamecenter/gamedetail/rating/RatingReplyAdapter.kt index bf0c4ea099..04a22ee255 100644 --- a/app/src/main/java/com/gh/gamecenter/gamedetail/rating/RatingReplyAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/gamedetail/rating/RatingReplyAdapter.kt @@ -273,10 +273,6 @@ class RatingReplyAdapter( likeCountTv.setDrawableStart(R.drawable.comment_vote_unselect) } likeCountTv.text = if (replyEntity.vote > 0) NumberUtils.transSimpleCount(replyEntity.vote) else "" - contentTv.setTextWithHighlightedTextWrappedInsideWrapper( - text = replyEntity.content, - copyClickedText = true - ) userIconIv.display( replyEntity.user.border, replyEntity.user.icon, @@ -292,6 +288,7 @@ class RatingReplyAdapter( badgeTv.visibility = View.GONE } val parent = replyEntity.parent + var contentCharSequence: CharSequence = replyEntity.content if (parent != null) { val prefix = "回复" val colon = " :" @@ -321,14 +318,17 @@ class RatingReplyAdapter( R.color.text_title ).build() - contentTv.text = SpannableStringBuilder() + contentCharSequence = SpannableStringBuilder() .append(prefixSpan) .append(parentUserNameSpan) .append(colonSpan) .append(replyEntity.content) - } else { - contentTv.text = replyEntity.content } + + contentTv.setTextWithHighlightedTextWrappedInsideWrapper( + text = contentCharSequence, + copyClickedText = true + ) badgeIv.setOnClickListener { DialogUtils.showViewBadgeDialog(mContext, replyEntity.user.badge, object : ConfirmListener { override fun onConfirm() {