[unmanned]
[吐司+线程问题]
This commit is contained in:
yangyakun
2023-09-15 15:48:35 +08:00
parent ccfd86431c
commit 9079603cfb

View File

@@ -67,6 +67,7 @@ class StartAutopilotViewModel : ViewModel(),
fun startAutopilot() {
if(doorOpenState){
VoiceNotice.showNotice("关紧车门后再出发吧!")
ToastUtils.showShort("关紧车门后再出发吧!")
viewCallback?.unableStartAutopilotByDoorState()
return
}
@@ -102,9 +103,9 @@ class StartAutopilotViewModel : ViewModel(),
}
private fun runMain(posttion: DoorPosition, state: DoorState){
UiThreadHandler.post {
UiThreadHandler.post({
viewCallback?.setDoorStatus(posttion,state)
}
},UiThreadHandler.MODE.QUEUE)
}