package com.gh.gamecenter; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.gh.common.util.EntranceUtils; import com.gh.gamecenter.entity.MessageEntity; import com.gh.gamecenter.qa.answer.detail.comment.AnswerCommentConversationFragment; import com.halo.assistant.fragment.comment.CommentDetailFragment; /** * Created by khy on 2017/3/22. */ public class CommentDetailActivity extends NormalActivity { // article 不为空则显示跳转原文按钮 public static Intent getIntent(Context context, String commentId, MessageEntity.Article article) { Bundle args = new Bundle(); args.putString(EntranceUtils.KEY_COMMENTID, commentId); args.putParcelable(MessageEntity.Article.TAG, article); // return new IntentFactory.Builder(context) // .setActivity(CommentDetailActivity.class) // .setFragment(CommentDetailFragment.class).setArgs(args).build(); return getTargetIntent(context, CommentDetailActivity.class, CommentDetailFragment.class, args); } public static Intent getAnswerCommentIntent(Context context, String commentId, String answerId) { Bundle args = new Bundle(); args.putString(EntranceUtils.KEY_COMMENTID, commentId); args.putString(EntranceUtils.KEY_ANSWER_ID, answerId); // return new IntentFactory.Builder(context) // .setActivity(CommentDetailActivity.class) // .setFragment(CommentDetailFragment.class).setArgs(args).build(); return getTargetIntent(context, CommentDetailActivity.class, AnswerCommentConversationFragment.class, args); } }