diff --git a/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/CommonLoadingView.kt b/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/CommonLoadingView.kt index 7d762fad85..ce74bff7f9 100644 --- a/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/CommonLoadingView.kt +++ b/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/CommonLoadingView.kt @@ -15,6 +15,7 @@ import com.mogo.map.listener.IMogoMapListener import com.mogo.map.listener.MogoMapListenerHandler import com.mogo.map.uicontroller.EnumMapUI import com.mogo.och.common.module.R +import com.mogo.och.common.module.biz.login.LoginStatusManager import kotlinx.android.synthetic.main.common_loading_map.view.aciv_loading_map class CommonLoadingView @JvmOverloads constructor( @@ -56,6 +57,33 @@ class CommonLoadingView @JvmOverloads constructor( HdMapBuildConfig.isMapLoaded = true // 设置地图样式 MogoMapListenerHandler.mogoMapListenerHandler.onMapModeChanged(EnumMapUI.MAP_STYLE_DAY_VR) + when (LoginStatusManager.getLoginInfo()?.carModel) { + "E70" -> { + HdMapBuildConfig.currentCarVrIconRes = com.mogo.eagle.core.data.R.raw.chuzuche + } + "H9" -> { + HdMapBuildConfig.currentCarVrIconRes = com.mogo.eagle.core.data.R.raw.hq_h9 + } + "B1" -> { + HdMapBuildConfig.currentCarVrIconRes = com.mogo.eagle.core.data.R.raw.xiaoba + } + "B2" -> { + HdMapBuildConfig.currentCarVrIconRes = com.mogo.eagle.core.data.R.raw.m2 + } + "M1" -> { + HdMapBuildConfig.currentCarVrIconRes = R.raw.m1 + } + "金旅牌XML6606JEVY0"-> { + HdMapBuildConfig.currentCarVrIconRes = com.mogo.eagle.core.data.R.raw.xiaoba + } + "NJL6450ICEV"-> { + HdMapBuildConfig.currentCarVrIconRes = com.mogo.eagle.core.data.R.raw.xiaoba + } + "BJ5122TXSEV-H1"-> { + HdMapBuildConfig.currentCarVrIconRes = R.raw.huanwei + } + else -> {} + } CallerMapUIServiceManager.getMapUIController()?.changeCurrentIcon(HdMapBuildConfig.currentCarVrIconRes) UiThreadHandler.postDelayed({ visibility = GONE },2_000,UiThreadHandler.MODE.QUEUE) } diff --git a/app/src/main/java/com/mogo/launcher/startup/ConfigStartUp.kt b/app/src/main/java/com/mogo/launcher/startup/ConfigStartUp.kt index 4565479a84..a7cf796c2c 100644 --- a/app/src/main/java/com/mogo/launcher/startup/ConfigStartUp.kt +++ b/app/src/main/java/com/mogo/launcher/startup/ConfigStartUp.kt @@ -104,21 +104,6 @@ object ConfigStartUp { } private fun initOtherConfig(context: Context) { - if (AppIdentityModeUtils.isB1(FunctionBuildConfig.appIdentityMode)){ - HdMapBuildConfig.currentCarVrIconRes = R.raw.xiaoba - } - if (AppIdentityModeUtils.isB2(FunctionBuildConfig.appIdentityMode)) { - HdMapBuildConfig.currentCarVrIconRes = R.raw.m2 - } - if (AppIdentityModeUtils.isC1(FunctionBuildConfig.appIdentityMode)){ - HdMapBuildConfig.currentCarVrIconRes = R.raw.huanwei - } - if (AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)){ - HdMapBuildConfig.currentCarVrIconRes = R.raw.m1 - } - if (AppIdentityModeUtils.isT1T2(FunctionBuildConfig.appIdentityMode)){ - HdMapBuildConfig.currentCarVrIconRes = R.raw.chuzuche - } if (AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)) { //是否显示 限速UI HmiBuildConfig.isShowLimitingVelocityView = false