fix context related
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user