删除无用的数据库相关类(concernDao还需整理), 修复不能重复领取/淘号问题
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user