[xiaozhi]
[taxi 和无人化taxi 小智和动画]
This commit is contained in:
yangyakun
2023-11-14 21:11:22 +08:00
parent 82cd08460c
commit eb8e560954
683 changed files with 488 additions and 429 deletions

View File

@@ -21,6 +21,7 @@ import com.mogo.eagle.core.function.call.order.CallerOrderListenerManager
import com.mogo.eagle.core.function.hmi.R
import com.mogo.eagle.core.function.hmi.ui.msgbox.adapter.PassengerMsgBoxBubbleAdapter
import com.mogo.eagle.core.function.msgbox.MsgBoxConfig
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
import kotlinx.android.synthetic.main.layout_passenger_msg_box_bubble.view.*
@@ -92,8 +93,9 @@ class PassengerMsgBoxBubbleView @JvmOverloads constructor(
* 小智语音消息执行
*/
private fun executeVoiceInfo(msgBoxList: MsgBoxBean){
CallerLogger.d(TAG,"-----onStatusChange $msgBoxList")
val voiceMsg = msgBoxList.bean as VoiceMsg
if(voiceMsg.isWakeUp && !voiceMsg.isWakeUpEnd){
if(!voiceMsg.isWakeUpEnd){
//有其他消息时,将其他消息缓存进未播放列表
voiceIsShowing = true
isCacheMsg = true

View File

@@ -6,4 +6,7 @@ data class MsgBoxBean(val type: MsgBoxType, val bean: Any) {
var timestamp: Long = 0
var bean2Json: String = ""
var sourceType: DataSourceType = DataSourceType.DEFAULT
override fun toString(): String {
return "MsgBoxBean(type=$type, bean=$bean, timestamp=$timestamp, bean2Json='$bean2Json', sourceType=$sourceType)"
}
}