[6.8.2] add func of fusion color

This commit is contained in:
zhongchao
2024-12-04 11:34:32 +08:00
parent b92f8e69fd
commit 5e477b5873
12 changed files with 120 additions and 15 deletions

View File

@@ -349,6 +349,12 @@ object CallerAutoPilotControlManager {
}
}
fun setFusionColor(isEnable: Boolean){
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
providerApi?.setFusionColor(isEnable)
}
}
/**
* 是否忽略条件直接绘制
* 司机屏同步给乘客屏

View File

@@ -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}")
}
}
}
}
}