[6.1.0]
[unmanned] [吐司+线程问题]
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user