1、统一了entrance
2、统一了部分跳转intent,传参返回intent 3、修改出dialogfragment 4、clipboardmanager等处理
This commit is contained in:
@ -42,29 +42,6 @@ public class NewsUtils {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动新闻详情页面
|
||||
*/
|
||||
public static void startNewsDetailActivity(Context context, NewsEntity newsEntity, String entrance) {
|
||||
if (!TextUtils.isEmpty(newsEntity.getLink())) {
|
||||
Intent intent = new Intent(context, WebActivity.class);
|
||||
intent.putExtra("url", newsEntity.getLink());
|
||||
intent.putExtra("gameName", newsEntity.getGameName());
|
||||
intent.putExtra("newsId", newsEntity.getId());
|
||||
intent.putExtra("entrance", entrance + "+(消息详情[" + newsEntity.getGameName() + "])");
|
||||
context.startActivity(intent);
|
||||
} else {
|
||||
Intent intent = new Intent(context, NewsDetailActivity.class);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.putExtra("id", newsEntity.getId());
|
||||
intent.putExtra("title", newsEntity.getTitle());
|
||||
intent.putExtra("type", newsEntity.getType());
|
||||
intent.putExtra("entrance", entrance);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 统计阅读量
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user