[Fix]修复问题
https://bugly.qq.com/v2/crash-reporting/crashes/ac71228f85/23002?pid=1 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -195,9 +195,16 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
|
||||
Logger.d(TAG, "map loaded." + Thread.currentThread().getName());
|
||||
resetMapCenterPoint();
|
||||
resetMapUiStyle();
|
||||
loadOthersModules();
|
||||
// 延时加载其他模块
|
||||
getWindow().getDecorView().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
loadOthersModules();
|
||||
}
|
||||
}, 1000);
|
||||
Log.i("timer", "cost " + (System.currentTimeMillis() - start) + "ms");
|
||||
});
|
||||
loadFunctionFragment();
|
||||
loadFunctionMapView();
|
||||
} else {
|
||||
loadOthersModules();
|
||||
@@ -234,7 +241,6 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
|
||||
*/
|
||||
protected void loadOthersModules() {
|
||||
// 加载地图,触发地图加载完毕回调,在初始化其他卡片模块,保证卡片模块可以正确获取地图相关服务。
|
||||
loadFunctionFragment();
|
||||
loadContainerModules();
|
||||
MogoModulesManager.getInstance().loadModules();
|
||||
MogoModulesManager.getInstance().loadFunctionModules();
|
||||
|
||||
Reference in New Issue
Block a user