Commit 73885b36 by sikang

bug fix

parent 465e5837
......@@ -97,12 +97,6 @@ public abstract class BaseActivity extends AppCompatActivity implements IView {
presenterHelper = new PresenterHoler(this);
initRootLayout();
/**
* display接口更新,需要在首页访问接口,为避免改动APP代码,这里在lib_base中添加功能
* */
if ("HomeActivity".equals(TAG)) {
getPresenter(UserPresenter.class).getCustomerMsg("");
}
if(getTrustee()!=null){
getTrustee().onCreate();
}
......
......@@ -58,6 +58,7 @@ public class UserPresenter extends BasePresenter<UserApi> {
@SuppressLint("CheckResult")
public void notifyGateway() {
getCustomerMsg("");
Observable.fromIterable(Gateway.getGatewayUrl())
.observeOn(Schedulers.io())
.concatMap(new Function<String, ObservableSource<GatewayInfoBean>>() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment