From 79f0237849c3751fde88f8dfea72bdf19fa2447a Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 1 Apr 2024 16:03:57 +0800 Subject: [PATCH] =?UTF-8?q?remove=20[=E7=A7=BB=E9=99=A4=E5=B7=B2=E8=AF=BB?= =?UTF-8?q?=E6=9C=AA=E8=AF=BB=E6=A0=87=E8=AE=B0]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/PDLiveMessageListAdapter.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/PDLiveMessageListAdapter.java b/live/src/main/java/com/yunbao/live/dialog/PDLiveMessageListAdapter.java index a8646c2..48ff2a6 100644 --- a/live/src/main/java/com/yunbao/live/dialog/PDLiveMessageListAdapter.java +++ b/live/src/main/java/com/yunbao/live/dialog/PDLiveMessageListAdapter.java @@ -74,7 +74,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter { holder.itemView.setBackgroundColor(Color.parseColor("#00000000")); ImageView readReceiptNew = holder.getConvertView().findViewById(R.id.rc_read_receipt_new); - if(messageDirection==Message.MessageDirection.RECEIVE){ + if (messageDirection == Message.MessageDirection.RECEIVE) { RongIMClient.getInstance().syncConversationReadStatus(mDataList.get(position).getConversationType(), mDataList.get(position).getTargetId(), mDataList.get(position).getSentTime(), @@ -86,7 +86,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter { @Override public void onError(RongIMClient.ErrorCode errorCode) { - Log.i("聊天推送", "同步消息失败:"+errorCode); + Log.i("聊天推送", "同步消息失败:" + errorCode); } }); } @@ -108,6 +108,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter { if (content instanceof MessageChatTipsContent) { readReceiptNew.setVisibility(View.GONE); } + readReceiptNew.setVisibility(View.GONE); } holder.getConvertView().setOnTouchListener(new View.OnTouchListener() { @@ -125,7 +126,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter { if (holder.getView(R.id.left_liveStatus) != null) { if (isLeftLive && !isSender) { holder.getView(R.id.left_liveStatus).setVisibility(View.VISIBLE); - } else{ + } else { holder.getView(R.id.left_liveStatus).setVisibility(View.GONE); } holder.getView(R.id.left_liveStatus).setOnClickListener(view -> {