1:添加元旦主题,添加新的接口
This commit is contained in:
@@ -32,9 +32,14 @@ import com.xscm.moduleutil.base.AppStateManager;
|
||||
import com.xscm.moduleutil.base.CommonAppContext;
|
||||
import com.xscm.modulemain.dialog.PolicyDialog;
|
||||
import com.xscm.moduleutil.base.WebUrlConstants;
|
||||
import com.xscm.moduleutil.bean.FestivalThemeBean;
|
||||
import com.xscm.moduleutil.http.BaseObserver;
|
||||
import com.xscm.moduleutil.http.RetrofitClient;
|
||||
import com.xscm.moduleutil.utils.ARouteConstants;
|
||||
import com.xscm.moduleutil.utils.SpUtil;
|
||||
|
||||
import io.reactivex.disposables.Disposable;
|
||||
|
||||
/**
|
||||
* APP准备启动
|
||||
* <p>
|
||||
@@ -77,6 +82,7 @@ public class LaunchPageActivity extends BaseMvpActivity<IPresenter, ActivityLaun
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
setHttpTheme();
|
||||
if (CommonAppContext.getInstance().isLogout){
|
||||
startActivity(new Intent(this, PasswordLoginActivity.class));
|
||||
finish();
|
||||
@@ -188,6 +194,23 @@ public class LaunchPageActivity extends BaseMvpActivity<IPresenter, ActivityLaun
|
||||
return null;
|
||||
}
|
||||
|
||||
private void setHttpTheme() {
|
||||
RetrofitClient.getInstance().getFestivalTheme(new BaseObserver<FestivalThemeBean>() {
|
||||
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(FestivalThemeBean festivalThemeBean) {
|
||||
if (festivalThemeBean != null) {
|
||||
CommonAppContext.getInstance().is_open = festivalThemeBean.is_open();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void setEnter() {
|
||||
if (!isCheck) {
|
||||
if (videoView != null) {
|
||||
|
||||
Reference in New Issue
Block a user