修改默认使用obu数据,数据类型修改,

This commit is contained in:
lixiaopeng
2022-09-07 18:37:19 +08:00
parent c5def34a1a
commit f8442908cc
5 changed files with 54 additions and 23 deletions

View File

@@ -599,12 +599,14 @@ import java.util.*
playTts: Boolean,
expireTime: Long
) {
Log.d("liyz", "showWarningV2X v2xType = $v2xType --alertContent = $alertContent --ttsContent = $ttsContent --tag = $tag ")
val playTTS = playTts && !AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)
activity?.let {
val warningContent = alertContent
?: EventTypeEnum.getWarningContent(v2xType)
if (warningContent.isEmpty()) {
CallerLogger.e("$M_HMI$TAG", "Show warningContent is null or empty!")
Log.e("liyz", "Show warningContent is null or empty!")
return
}
val content = mViewNotificationProvider?.getNotificationView() ?: return
@@ -795,7 +797,9 @@ import java.util.*
override fun showWarning(direction: WarningDirectionEnum) {
Log.d(TAG,"showWarning====")
flV2XWarningView?.showWarning(direction)
flicker(flV2XWarningView)
if (flV2XWarningView != null) {
flicker(flV2XWarningView)
}
}
/**