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 {