动态回复 不能举报自己修改途牛的上传地址

This commit is contained in:
ningwenqiang 2024-11-06 11:00:50 +08:00
parent c294a1c073
commit 5bc2c375cb
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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 {