wait to finish

This commit is contained in:
zhongchao
2021-07-28 18:04:00 +08:00
parent 6a67cccb80
commit e6dc21288a
4 changed files with 8 additions and 26 deletions

View File

@@ -71,7 +71,7 @@ public class MogoApplication extends AbsMogoApplication {
//设置debug模式日志不上传
crashSystem.setDebug(BuildConfig.DEBUG);
Logger.init(BuildConfig.DEBUG ? LogLevel.DEBUG : LogLevel.OFF);
initMogoHttpDns();
initTipToast();
initModules();
}
@@ -120,7 +120,7 @@ public class MogoApplication extends AbsMogoApplication {
prepareBaseService();
}
@Override
//todo
protected HttpSimpleLocation getCurrentLocation() {
MogoLocation location = MogoApisHandler.getInstance().getApis().getMapServiceApi().getSingletonLocationClient(this).getLastKnowLocation();
if (location == null) {
@@ -233,6 +233,8 @@ public class MogoApplication extends AbsMogoApplication {
new IMoGoTokenCallback() {
@Override
public void onTokenGot(String token, String sn) {
//todo
asyncInit();
// 鉴权成功后开启socket长链服务
prepareSocketAndLocationServices();
}