新闻详情整理、我的光环界面修改
This commit is contained in:
@ -9,7 +9,6 @@ import com.android.volley.VolleyError;
|
||||
import com.gh.base.AppController;
|
||||
import com.gh.gamecenter.NewsDetailActivity;
|
||||
import com.gh.gamecenter.R;
|
||||
import com.gh.gamecenter.entity.NewsDetailEntity;
|
||||
import com.gh.gamecenter.entity.NewsEntity;
|
||||
import com.gh.gamecenter.volley.extended.JsonObjectExtendedRequest;
|
||||
|
||||
@ -45,12 +44,9 @@ public class NewsUtils {
|
||||
*/
|
||||
public static void startNewsActivity(Context context, NewsEntity newsEntity, String entrance) {
|
||||
Intent intent = new Intent(context, NewsDetailActivity.class);
|
||||
NewsDetailEntity entity = new NewsDetailEntity();
|
||||
entity.setId(newsEntity.getId());
|
||||
entity.setTitle(newsEntity.getTitle());
|
||||
entity.setType(newsEntity.getType());
|
||||
entity.setTime(newsEntity.getPublishOn());
|
||||
intent.putExtra("entity", entity);
|
||||
intent.putExtra("id", newsEntity.getId());
|
||||
intent.putExtra("title", newsEntity.getTitle());
|
||||
intent.putExtra("type", newsEntity.getType());
|
||||
intent.putExtra("entrance", entrance);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(intent);
|
||||
|
||||
Reference in New Issue
Block a user