From 5bc2c375cba511584beec8d081bd0ea212f1577f Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Wed, 6 Nov 2024 11:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=9B=9E=E5=A4=8D=20?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E4=B8=BE=E6=8A=A5=E8=87=AA=E5=B7=B1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=80=94=E7=89=9B=E7=9A=84=E4=B8=8A=E4=BC=A0=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/adapter/CommentAdapter.java | 2 ++ .../java/com/yunbao/common/adapter/CommentReplyAdapter.java | 1 + 2 files changed, 3 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/adapter/CommentAdapter.java b/common/src/main/java/com/yunbao/common/adapter/CommentAdapter.java index 13f467ba6..dad134e37 100644 --- a/common/src/main/java/com/yunbao/common/adapter/CommentAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/CommentAdapter.java @@ -149,6 +149,7 @@ public class CommentAdapter extends RecyclerView.Adapter { replyTextView.setTag(bean); ImgLoader.display(itemView.getContext(), bean.getUser_avatar(), mAvatar); name.setText(bean.getUser_name()); + report.setVisibility(bean.getUid().equals(myUid)?View.GONE: View.VISIBLE); content.setText(bean.getContent()); if (bean.getUser_id().equals(authorId)) { author.setVisibility(View.VISIBLE); @@ -164,6 +165,7 @@ public class CommentAdapter extends RecyclerView.Adapter { replyCount.setText(String.format(mContext.getResources().getString(R.string.active_count), String.valueOf(bean.getReplyCommentList().size()))); if (bean.getReplyCommentList().size() > 0) { report1.setTag(bean.getReplyCommentList().get(0)); + report1.setVisibility( bean.getReplyCommentList().get(0).getUid().equals(myUid)?View.GONE: View.VISIBLE); del1.setTag(bean.getReplyCommentList().get(0)); replyContent.setText(bean.getReplyCommentList().get(0).getContent()); ImgLoader.display(itemView.getContext(), bean.getReplyCommentList().get(0).getUser_avatar(), mAvatar01); diff --git a/common/src/main/java/com/yunbao/common/adapter/CommentReplyAdapter.java b/common/src/main/java/com/yunbao/common/adapter/CommentReplyAdapter.java index c2b1fef33..dab55c212 100644 --- a/common/src/main/java/com/yunbao/common/adapter/CommentReplyAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/CommentReplyAdapter.java @@ -94,6 +94,7 @@ public class CommentReplyAdapter extends RecyclerView.Adapter { ImgLoader.display(itemView.getContext(), bean.getUser_avatar(), mAvatar01); name.setText(bean.getUser_name()); replyContent.setText(bean.getContent()); + report.setVisibility(bean.getUid().equals(myUid)?View.GONE: View.VISIBLE); if (bean.getUser_id().equals(authorId)) { author.setVisibility(View.VISIBLE); } else {