diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainActivity.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainActivity.kt index 5552719668..5368d577e2 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainActivity.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainActivity.kt @@ -201,23 +201,22 @@ open class MainActivity : MvpActivity(), MainView, MogoStatusManager.getInstance().setVrMode(TAG, true) MogoModulesManager.getInstance().init(this) loadOthersModules() - mogoMapListenerHandler.registerHostMapListener(TAG, object : IMogoMapListener { - override fun onMapLoaded() { - // 延时加载其他模块 - window.decorView.post { - MogoStatusManager.getInstance().setScreenCoverMode(TAG, true) - HdMapBuildConfig.isMapLoaded = true - mPresenter!!.delayOperations() - loadFunctionFragment() - // 设置地图样式 - mogoMapListenerHandler.onMapModeChanged(EnumMapUI.MAP_STYLE_DAY_VR) - } - i( - SceneConstant.M_HMI + TAG, - "App launch timer cost " + (System.currentTimeMillis() - start) + "ms" - ) - } - }) + mPresenter!!.delayOperations() +// mogoMapListenerHandler.registerHostMapListener(TAG, object : IMogoMapListener { +// override fun onMapLoaded() { +// // 延时加载其他模块 +// window.decorView.post { +// MogoStatusManager.getInstance().setScreenCoverMode(TAG, true) +// HdMapBuildConfig.isMapLoaded = true +// // 设置地图样式 +// mogoMapListenerHandler.onMapModeChanged(EnumMapUI.MAP_STYLE_DAY_VR) +// } +// i( +// SceneConstant.M_HMI + TAG, +// "App launch timer cost " + (System.currentTimeMillis() - start) + "ms" +// ) +// } +// }) } /** @@ -349,7 +348,7 @@ open class MainActivity : MvpActivity(), MainView, super.onDestroy() CallerAutoPilotStatusListenerManager.removeListener(TAG) CallerRequestActivityHandleManager.removeListener(TAG) - mogoMapListenerHandler.unregisterHostMapListener(TAG) + //mogoMapListenerHandler.unregisterHostMapListener(TAG) MogoStatusManager.getInstance().setMainPageIsBackgroundStatus(TAG, false) d(SceneConstant.M_HMI + TAG, "destroy.") ContextHolderUtil.releaseContext()