wait to finiah
This commit is contained in:
@@ -21,6 +21,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_
|
||||
import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr
|
||||
import com.mogo.module.common.drawer.TrafficMarkerDrawer
|
||||
import com.mogo.module.common.enums.EventTypeEnum
|
||||
import com.mogo.module.common.enums.EventTypeHelper
|
||||
import com.mogo.service.IMogoServiceApis
|
||||
import com.zhidao.support.obu.MogoObuManager
|
||||
import com.zhidao.support.obu.OnMogoObuListener
|
||||
@@ -771,7 +772,12 @@ class MogoPrivateObuManager private constructor() {
|
||||
var changeVisualAngle = false
|
||||
when (appId.toString()) {
|
||||
// 变道预警,注意左后车辆/注意右后车辆
|
||||
|
||||
EventTypeEnum.TYPE_USECASE_ID_LCW.poiType -> {
|
||||
EventTypeHelper.getLCW(direction){ alert, tts ->
|
||||
alertContent = alert
|
||||
ttsContent = tts
|
||||
}
|
||||
alertContent = EventTypeEnum.getWarningContent(appId.toString())
|
||||
ttsContent = EventTypeEnum.getWarningTts(appId.toString())
|
||||
if (
|
||||
|
||||
@@ -10,7 +10,7 @@ class EventTypeHelper {
|
||||
|
||||
fun getLCW(
|
||||
direction: WarningDirectionEnum,
|
||||
data: ((alertContent: String, ttsContent: String) -> Unit)
|
||||
data: ((alert: String, tts: String) -> Unit)
|
||||
) {
|
||||
when {
|
||||
direction.isLeft() -> {
|
||||
@@ -36,7 +36,7 @@ class EventTypeHelper {
|
||||
|
||||
fun getCLW(
|
||||
direction: WarningDirectionEnum,
|
||||
data: ((alertContent: String, ttsContent: String) -> Unit)
|
||||
data: ((alert: String, tts: String) -> Unit)
|
||||
){
|
||||
data.invoke(EventTypeEnum.getWarningContent(EventTypeEnum.TYPE_USECASE_ID_CLW.poiType + direction.desc)
|
||||
,EventTypeEnum.getWarningContent(EventTypeEnum.TYPE_USECASE_ID_CLW.poiType + direction.desc))
|
||||
|
||||
Reference in New Issue
Block a user