删除无用的数据库相关类(concernDao还需整理), 修复不能重复领取/淘号问题

This commit is contained in:
kehaoyuan
2017-09-22 15:27:54 +08:00
parent f292eb0fc6
commit 5e3d7d2f2b
43 changed files with 131 additions and 2621 deletions

View File

@ -17,8 +17,6 @@ import com.gh.gamecenter.MessageDetailActivity;
import com.gh.gamecenter.R;
import com.gh.gamecenter.adapter.OnCommentCallBackListener;
import com.gh.gamecenter.adapter.viewholder.CommentViewHolder;
import com.gh.gamecenter.db.VoteDao;
import com.gh.gamecenter.db.info.VoteInfo;
import com.gh.gamecenter.entity.CommentEntity;
import com.gh.gamecenter.entity.UserDataEntity;
import com.gh.gamecenter.entity.UserInfoEntity;
@ -209,7 +207,7 @@ public class CommentUtils {
reportTypeDialog.show();
}
public static void postVote(final Context context, final CommentEntity commentEntity, final VoteDao voteDao,
public static void postVote(final Context context, final CommentEntity commentEntity,
final TextView commentLikeCountTv, final ImageView commentLikeIv, final OnVoteListener listener) {
CheckLoginUtils.checkLogin(context, new CheckLoginUtils.OnLoggenInListener() {
@Override
@ -228,7 +226,6 @@ public class CommentUtils {
new PostCommentUtils.PostCommentListener() {
@Override
public void postSuccess(JSONObject response) {
voteDao.add(new VoteInfo(commentEntity.getId()));
if (listener != null) {
listener.onVote();
}