[6.8.2] add func of fusion color
This commit is contained in:
@@ -349,6 +349,12 @@ object CallerAutoPilotControlManager {
|
||||
}
|
||||
}
|
||||
|
||||
fun setFusionColor(isEnable: Boolean){
|
||||
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
|
||||
providerApi?.setFusionColor(isEnable)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否忽略条件直接绘制
|
||||
* 司机屏同步给乘客屏
|
||||
|
||||
@@ -57,4 +57,21 @@ object CallerTelematicListenerManager: CallerBase<IReceivedMsgListener>() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun dispatchFusionColor(fusionColor: Boolean) {
|
||||
if (fusionColor != FunctionBuildConfig.isFusionColor) {
|
||||
FunctionBuildConfig.isFusionColor = fusionColor
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
try {
|
||||
listener.onFusionColor(fusionColor)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Log.e(TAG, "转发感知颜色出现异常:${e.message}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user