整理Entrance type
This commit is contained in:
@ -138,7 +138,7 @@ public class MessageDetailActivity extends BaseActivity implements OnCommentCall
|
||||
HaloApp.put("CommentEntity", entity);
|
||||
Intent intent = new Intent(context, MessageDetailActivity.class);
|
||||
intent.putExtra("commentNum", -1);
|
||||
intent.putExtra("newsId", newsId);
|
||||
intent.putExtra(EntranceUtils.KEY_NEWSID, newsId);
|
||||
intent.putExtra("openSoftInput", true);
|
||||
return intent;
|
||||
}
|
||||
@ -152,7 +152,7 @@ public class MessageDetailActivity extends BaseActivity implements OnCommentCall
|
||||
|
||||
public static Intent getIntentById(Context context, String newsId, Integer commentNum, Boolean openSoftInput, String entrance) {
|
||||
Intent intent = new Intent(context, MessageDetailActivity.class);
|
||||
intent.putExtra("newsId", newsId);
|
||||
intent.putExtra(EntranceUtils.KEY_NEWSID, newsId);
|
||||
intent.putExtra(EntranceUtils.KEY_ENTRANCE, entrance);
|
||||
intent.putExtra("commentNum", commentNum);
|
||||
intent.putExtra("openSoftInput", openSoftInput);
|
||||
@ -180,7 +180,7 @@ public class MessageDetailActivity extends BaseActivity implements OnCommentCall
|
||||
mCommentEntity = (CommentEntity) HaloApp.get("CommentEntity", true); // 来自新闻详情-评论回复
|
||||
|
||||
Intent intent = getIntent();
|
||||
newsId = intent.getExtras().getString("newsId");
|
||||
newsId = intent.getExtras().getString(EntranceUtils.KEY_NEWSID);
|
||||
commentNum = intent.getExtras().getInt("commentNum", -1);
|
||||
|
||||
//复用问题 mConcernEntity对应的文章有可能和跳转之前的文章不一致
|
||||
|
||||
Reference in New Issue
Block a user