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 a8646c2b8..48ff2a689 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 -> {