将列表onclick事件提取出来(只完成资讯模块)
This commit is contained in:
@ -25,6 +25,7 @@ import com.gh.common.util.DisplayUtils;
|
||||
import com.gh.common.util.EntranceUtils;
|
||||
import com.gh.common.util.ShareUtils;
|
||||
import com.gh.gamecenter.entity.CommentnumEntity;
|
||||
import com.gh.gamecenter.entity.ConcernEntity;
|
||||
import com.gh.gamecenter.entity.NewsEntity;
|
||||
import com.gh.gamecenter.entity.ToolBoxEntity;
|
||||
import com.gh.gamecenter.entity.UserDataEntity;
|
||||
@ -96,6 +97,16 @@ public class WebActivity extends BaseActivity {
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static Intent getIntentByNews(Context context, ConcernEntity concernEntity, String entrance) {
|
||||
Intent intent = new Intent(context, WebActivity.class);
|
||||
intent.putExtra("url", concernEntity.getLink());
|
||||
intent.putExtra("gameName", concernEntity.getGameName());
|
||||
intent.putExtra("newsId", concernEntity.getId());
|
||||
intent.putExtra(EntranceUtils.KEY_ENTRANCE, entrance);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static Intent getIntentByNews(Context context, NewsEntity newsEntity, String entrance) {
|
||||
Intent intent = new Intent(context, WebActivity.class);
|
||||
|
||||
Reference in New Issue
Block a user