完成游戏评论详情(回复)相关页面展示/分页/跳转/点赞操作
This commit is contained in:
@ -19,9 +19,11 @@ import com.gh.gamecenter.R;
|
||||
import com.gh.gamecenter.adapter.OnCommentCallBackListener;
|
||||
import com.gh.gamecenter.adapter.viewholder.CommentViewHolder;
|
||||
import com.gh.gamecenter.entity.CommentEntity;
|
||||
import com.gh.gamecenter.entity.GameEntity;
|
||||
import com.gh.gamecenter.entity.MeEntity;
|
||||
import com.gh.gamecenter.entity.RatingComment;
|
||||
import com.gh.gamecenter.entity.UserInfoEntity;
|
||||
import com.gh.gamecenter.gamedetail.rating.RatingReplyActivity;
|
||||
import com.gh.gamecenter.manager.UserManager;
|
||||
import com.gh.gamecenter.retrofit.Response;
|
||||
import com.gh.gamecenter.retrofit.RetrofitManager;
|
||||
@ -82,7 +84,7 @@ public class CommentUtils {
|
||||
|
||||
public static void showGameCommentOptions(final Context context,
|
||||
final RatingComment comment,
|
||||
final String gameId,
|
||||
final GameEntity game,
|
||||
final String entrance) {
|
||||
|
||||
final Dialog dialog = new Dialog(context);
|
||||
@ -96,6 +98,7 @@ public class CommentUtils {
|
||||
|
||||
dialogType.add("复制");
|
||||
dialogType.add("举报");
|
||||
dialogType.add("回复");
|
||||
|
||||
|
||||
for (String s : dialogType) {
|
||||
@ -118,7 +121,10 @@ public class CommentUtils {
|
||||
copyText(comment.getContent(), context);
|
||||
break;
|
||||
case "举报":
|
||||
CheckLoginUtils.checkLogin(context, entrance, () -> showGameCommentReportDialog(gameId, comment, context));
|
||||
CheckLoginUtils.checkLogin(context, entrance, () -> showGameCommentReportDialog(game.getId(), comment, context));
|
||||
break;
|
||||
case "回复":
|
||||
CheckLoginUtils.checkLogin(context, entrance, () -> context.startActivity(RatingReplyActivity.getIntent(context, game, comment)));
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user