feat: 【光环助手V5.13.0】评论 新增 IP属地展示 https://git.shanqu.cc/pm/halo/halo-app-issues/-/issues/2008

This commit is contained in:
张玉久
2022-08-17 11:17:34 +08:00
parent 1aadf7bd38
commit cfb48c07ff
32 changed files with 432 additions and 261 deletions

View File

@ -390,6 +390,9 @@ public class MessageDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
CommentUtils.setCommentUserView(mContext, holder, commentEntity);
CommentUtils.setCommentTime(holder.commentTimeTv, commentEntity.getTime());
if (commentEntity.getSource() != null && !commentEntity.getSource().getRegion().isEmpty()) {
holder.commentTimeTv.setText(holder.commentTimeTv.getText() + " · " + commentEntity.getSource().getRegion());
}
final CommentEntity finalCommentEntity = commentEntity;
final boolean finalIsHotComment = isHotComment;