[6.7.0]
[fea] [通过后台设置车型]
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user