去卡片化, 开服表, 首页游戏-资讯改版,游戏专题增加标签(还差一个接口)
This commit is contained in:
@ -57,7 +57,6 @@ import butterknife.OnClick;
|
||||
import butterknife.OnTouch;
|
||||
import retrofit2.adapter.rxjava.HttpException;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
import rx.functions.Action1;
|
||||
import rx.schedulers.Schedulers;
|
||||
|
||||
/**
|
||||
@ -211,8 +210,8 @@ public class MessageDetailActivity extends BaseActivity implements MessageDetail
|
||||
.subscribe(new com.gh.gamecenter.retrofit.Response<List<CommentnumEntity>>(){
|
||||
|
||||
@Override
|
||||
public void onNext(List<CommentnumEntity> response) {
|
||||
super.onNext(response);
|
||||
public void onResponse(List<CommentnumEntity> response) {
|
||||
super.onResponse(response);
|
||||
if (response.size() > 0) {
|
||||
if (!TextUtils.isEmpty(mConcernEntity.getId())){
|
||||
commentNum = response.get(0).getNum();
|
||||
@ -260,9 +259,9 @@ public class MessageDetailActivity extends BaseActivity implements MessageDetail
|
||||
.getNewsViews(newsId)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Action1<List<ViewsEntity>>() {
|
||||
.subscribe(new Response<List<ViewsEntity>>(){
|
||||
@Override
|
||||
public void call(List<ViewsEntity> viewsEntities) {
|
||||
public void onResponse(List<ViewsEntity> viewsEntities) {
|
||||
if (viewsEntities.size() > 0) {
|
||||
mConcernEntity.setViews(viewsEntities.get(0).getViews());
|
||||
adapter.notifyItemChanged(0);
|
||||
|
||||
Reference in New Issue
Block a user