fix context related

This commit is contained in:
CsHeng
2017-09-19 14:28:43 +08:00
parent 5d3a4e24f9
commit 0ca71f25f6
13 changed files with 34 additions and 53 deletions

View File

@ -55,7 +55,6 @@ import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import static com.gh.common.util.EntranceUtils.KEY_DATA;
import static com.taobao.accs.ACCSManager.mContext;
/**
* 引导页面
@ -321,7 +320,7 @@ public class SplashScreenActivity extends BaseActivity {
// 获取下载按钮显示状态
private void getDownloadStatus() {
String channel = HaloApp.getInstance().getChannel();
RetrofitManager.getInstance(mContext).getApi().getDownloadStatus(
RetrofitManager.getInstance(this).getApi().getDownloadStatus(
PackageUtils.getVersionName(getApplicationContext()), channel)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
@ -350,7 +349,7 @@ public class SplashScreenActivity extends BaseActivity {
// 获取界面设置
private void getUISetting() {
RetrofitManager.getInstance(mContext).getApi().getUISetting()
RetrofitManager.getInstance(this).getApi().getUISetting()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new JSONObjectResponse() {