Commit 9833dc57 by sikang

bug fix

parent cbe6d3d8
......@@ -91,8 +91,10 @@ public class UserPresenter extends BasePresenter<UserApi> {
public void accept(GatewayInfoBean gatewayInfoBean) throws Exception {
Gateway.setGatewayInfoBean(gatewayInfoBean);
getCustomerMsg("");
view.onHttpSuccess("", null);
EventBus.getDefault().post(ActionEnum.GATEWAY_UPDATED);
if (view != null) {
view.onHttpSuccess("", null);
}
}
});
}
......@@ -619,7 +621,6 @@ public class UserPresenter extends BasePresenter<UserApi> {
handleRequest(apiService.display(), new HttpObserver<DisplayBean>() {
@Override
public void onStart() {
view.onHttpStart(action, true);
}
@Override
......@@ -637,17 +638,17 @@ public class UserPresenter extends BasePresenter<UserApi> {
}
data.setUpdateTime(System.currentTimeMillis());
PreferencesManager.get().saveCustomerInfo(data);
view.onHttpSuccess(action, data);
}
@Override
public void onError(int code, String msg) {
view.onHttpError(action, msg);
if (view != null) {
view.onHttpError(action, msg);
}
}
@Override
public void onFinish() {
view.onHttpFinish(action);
}
});
}
......
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