调整评论,消息分享,关闭下载的游戏不要隐藏下载按钮
This commit is contained in:
@ -430,7 +430,7 @@ public class MessageDetailAdapter extends RecyclerView.Adapter<RecyclerView.View
|
||||
if (commentEntity.getVote() == 0) {
|
||||
holder.commentLikeCountTv.setVisibility(View.GONE);
|
||||
} else { // 检查是否已点赞
|
||||
if (mVoteDao.find(commentEntity.getId())) {
|
||||
if (mVoteDao.find(commentEntity.getId()) && commentEntity.getVote() >= 1) {
|
||||
holder.commentLikeCountTv.setTextColor(mContext.getResources().getColor(R.color.theme));
|
||||
holder.commentLikeIv.setImageResource(R.drawable.comment_like_select);
|
||||
} else {
|
||||
@ -483,6 +483,7 @@ public class MessageDetailAdapter extends RecyclerView.Adapter<RecyclerView.View
|
||||
Utils.toast(mContext, "已经点过赞啦!");
|
||||
return;
|
||||
}
|
||||
|
||||
PostCommentUtils.addCommentVoto(finalCommentEntity.getId(), mContext, null);
|
||||
holder.commentLikeCountTv.setTextColor(mContext.getResources().getColor(R.color.theme));
|
||||
holder.commentLikeIv.setImageResource(R.drawable.comment_like_select);
|
||||
|
||||
Reference in New Issue
Block a user