用户数据同步-礼包相关(优化/整理)

This commit is contained in:
kehaoyuan
2017-09-16 18:30:51 +08:00
parent 5007f7e83d
commit 2ffb0f59a2
17 changed files with 63 additions and 110 deletions

View File

@ -17,7 +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.CommentDao;
import com.gh.gamecenter.db.VoteDao;
import com.gh.gamecenter.db.info.VoteInfo;
import com.gh.gamecenter.entity.CommentEntity;
@ -76,8 +75,6 @@ public class CommentUtils {
public static void showReportDialog(final CommentEntity commentEntity, final Context context,
final OnCommentCallBackListener listener, final String newsId) {
CommentDao commentDao = new CommentDao(context);
final Dialog dialog = new Dialog(context);
LinearLayout container = new LinearLayout(context);
@ -87,7 +84,7 @@ public class CommentUtils {
List<String> dialogType = new ArrayList<>();
if (!commentDao.isMyComment(commentEntity.getId())) {
if (commentEntity.getUserData() == null || !commentEntity.getUserData().isCommentOwn()) {
dialogType.add("回复");
}