调整评论,消息分享,关闭下载的游戏不要隐藏下载按钮

This commit is contained in:
khy
2016-11-16 12:08:26 +08:00
parent f28a54506e
commit 04cfbcb7e4
11 changed files with 119 additions and 43 deletions

View File

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