activity入口整理(涉及到外部启动(插件跳转/推送)的未完成)
This commit is contained in:
@ -31,6 +31,7 @@ import com.gh.gamecenter.adapter.viewholder.FooterViewHolder;
|
||||
import com.gh.gamecenter.adapter.viewholder.NewsDigestViewHolder;
|
||||
import com.gh.gamecenter.entity.CommentEntity;
|
||||
import com.gh.gamecenter.entity.ConcernEntity;
|
||||
import com.gh.gamecenter.entity.NewsEntity;
|
||||
import com.gh.gamecenter.manager.VisitManager;
|
||||
import com.gh.gamecenter.retrofit.JSONObjectResponse;
|
||||
import com.gh.gamecenter.retrofit.OkHttpCache;
|
||||
@ -303,12 +304,11 @@ public class MessageDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
|
||||
statNewsViews(mConcernEntity.getId());
|
||||
|
||||
if (mConcernEntity.getLink() != null) {
|
||||
Intent intent = new Intent(mContext, WebActivity.class);
|
||||
intent.putExtra("url", mConcernEntity.getLink());
|
||||
intent.putExtra("gameName", mConcernEntity.getGameName());
|
||||
intent.putExtra("newsId", mConcernEntity.getId());
|
||||
intent.putExtra(EntranceUtils.KEY_ENTRANCE, StringUtils.buildString(mEntrance, "+(消息详情)"));
|
||||
mContext.startActivity(intent);
|
||||
NewsEntity newsEntity = new NewsEntity();
|
||||
newsEntity.setLink(mConcernEntity.getLink());
|
||||
newsEntity.setGameName(mConcernEntity.getGameName());
|
||||
newsEntity.setId(mConcernEntity.getId());
|
||||
mContext.startActivity(WebActivity.getIntentByNews(mContext, newsEntity ,StringUtils.buildString(mEntrance, "+(消息详情)")));
|
||||
} else {
|
||||
Intent intent = new Intent(mContext, NewsDetailActivity.class);
|
||||
intent.putExtra("newsId", mConcernEntity.getId());
|
||||
|
||||
Reference in New Issue
Block a user