Compare commits
1 Commits
feature-mo
...
v2.4
| Author | SHA1 | Date | |
|---|---|---|---|
| fc1dc858e2 |
@ -46,7 +46,7 @@ public class LibaoDetailActivity extends BaseDetailActivity {
|
|||||||
detail_rv_show.setLayoutManager(new LinearLayoutManager(this));
|
detail_rv_show.setLayoutManager(new LinearLayoutManager(this));
|
||||||
detail_rv_show.setAdapter(mAdapter);
|
detail_rv_show.setAdapter(mAdapter);
|
||||||
|
|
||||||
if (mLibaoEntity.getGame().getId() != null) {
|
if (mLibaoEntity != null && mLibaoEntity.getGame() != null && mLibaoEntity.getGame().getId() != null) {
|
||||||
title = mLibaoEntity.getName();
|
title = mLibaoEntity.getName();
|
||||||
getGameDigest();
|
getGameDigest();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,7 +57,6 @@ import butterknife.OnClick;
|
|||||||
import butterknife.OnTouch;
|
import butterknife.OnTouch;
|
||||||
import retrofit2.adapter.rxjava.HttpException;
|
import retrofit2.adapter.rxjava.HttpException;
|
||||||
import rx.android.schedulers.AndroidSchedulers;
|
import rx.android.schedulers.AndroidSchedulers;
|
||||||
import rx.functions.Action1;
|
|
||||||
import rx.schedulers.Schedulers;
|
import rx.schedulers.Schedulers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -211,8 +210,8 @@ public class MessageDetailActivity extends BaseActivity implements MessageDetail
|
|||||||
.subscribe(new com.gh.gamecenter.retrofit.Response<List<CommentnumEntity>>(){
|
.subscribe(new com.gh.gamecenter.retrofit.Response<List<CommentnumEntity>>(){
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(List<CommentnumEntity> response) {
|
public void onResponse(List<CommentnumEntity> response) {
|
||||||
super.onNext(response);
|
super.onResponse(response);
|
||||||
if (response.size() > 0) {
|
if (response.size() > 0) {
|
||||||
if (!TextUtils.isEmpty(mConcernEntity.getId())){
|
if (!TextUtils.isEmpty(mConcernEntity.getId())){
|
||||||
commentNum = response.get(0).getNum();
|
commentNum = response.get(0).getNum();
|
||||||
@ -260,9 +259,9 @@ public class MessageDetailActivity extends BaseActivity implements MessageDetail
|
|||||||
.getNewsViews(newsId)
|
.getNewsViews(newsId)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(new Action1<List<ViewsEntity>>() {
|
.subscribe(new Response<List<ViewsEntity>>(){
|
||||||
@Override
|
@Override
|
||||||
public void call(List<ViewsEntity> viewsEntities) {
|
public void onResponse(List<ViewsEntity> viewsEntities) {
|
||||||
if (viewsEntities.size() > 0) {
|
if (viewsEntities.size() > 0) {
|
||||||
mConcernEntity.setViews(viewsEntities.get(0).getViews());
|
mConcernEntity.setViews(viewsEntities.get(0).getViews());
|
||||||
adapter.notifyItemChanged(0);
|
adapter.notifyItemChanged(0);
|
||||||
|
|||||||
@ -328,6 +328,7 @@ public class SplashScreenActivity extends BaseActivity {
|
|||||||
if (sp.getBoolean("isNewFirstLaunchV" + PackageUtils.getVersionName(getApplicationContext()), true)) {
|
if (sp.getBoolean("isNewFirstLaunchV" + PackageUtils.getVersionName(getApplicationContext()), true)) {
|
||||||
bundle = new Bundle();
|
bundle = new Bundle();
|
||||||
bundle.putString("to", "DownloadManagerActivity");
|
bundle.putString("to", "DownloadManagerActivity");
|
||||||
|
bundle.putInt("currentItem", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);
|
Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);
|
||||||
|
|||||||
@ -163,7 +163,7 @@ class GameDownloadFragmentAdapter extends RecyclerView.Adapter<RecyclerView.View
|
|||||||
}
|
}
|
||||||
|
|
||||||
String icon = downloadEntity.getIcon();
|
String icon = downloadEntity.getIcon();
|
||||||
if (icon.contains("KuaiChuanIcon")) { // 来自快传的apk
|
if (!TextUtils.isEmpty(icon) && icon.contains("KuaiChuanIcon")) { // 来自快传的apk
|
||||||
try {
|
try {
|
||||||
JSONObject jsonObject = new JSONObject(icon);
|
JSONObject jsonObject = new JSONObject(icon);
|
||||||
String apkPath = jsonObject.getString("KuaiChuanIcon");
|
String apkPath = jsonObject.getString("KuaiChuanIcon");
|
||||||
|
|||||||
@ -62,7 +62,6 @@ import java.util.Map;
|
|||||||
import okhttp3.ResponseBody;
|
import okhttp3.ResponseBody;
|
||||||
import retrofit2.adapter.rxjava.HttpException;
|
import retrofit2.adapter.rxjava.HttpException;
|
||||||
import rx.android.schedulers.AndroidSchedulers;
|
import rx.android.schedulers.AndroidSchedulers;
|
||||||
import rx.functions.Action1;
|
|
||||||
import rx.functions.Func1;
|
import rx.functions.Func1;
|
||||||
import rx.schedulers.Schedulers;
|
import rx.schedulers.Schedulers;
|
||||||
|
|
||||||
@ -210,9 +209,10 @@ public class GameDetailAdapter extends RecyclerView.Adapter {
|
|||||||
})
|
})
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(new Action1<Object>() {
|
.subscribe(new Response<Object>(){
|
||||||
@Override
|
@Override
|
||||||
public void call(Object o) {
|
public void onResponse(Object response) {
|
||||||
|
super.onResponse(response);
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -324,7 +324,7 @@ public class News1FragmentAdapter extends RecyclerView.Adapter<RecyclerView.View
|
|||||||
LibaoUtils.getLibaoStatus(ids, new LibaoUtils.PostLibaoListener() {
|
LibaoUtils.getLibaoStatus(ids, new LibaoUtils.PostLibaoListener() {
|
||||||
@Override
|
@Override
|
||||||
public void postSucced(Object response) {
|
public void postSucced(Object response) {
|
||||||
libaoStatusList = (List<LibaoStatusEntity>) response;
|
libaoStatusList.addAll((List<LibaoStatusEntity>)response);
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user