[6.1.0] 点击取消平行驾驶时,无任务不去流转状态

This commit is contained in:
wangmingjun
2023-09-28 17:43:08 +08:00
parent 07865d1123
commit 7b8d6881c6

View File

@@ -303,6 +303,10 @@ class TaxiCurrentTaskViewModel : BaseViewModel<UnmannedState, TaskUiIntent>(),
*/
override fun onStopAutopilot() {
UiThreadHandler.removeCallbacks(startTaskRunnable)
if (!TaxiTaskModel.checkCurrentTaskCondition()) {
d(TAG, "onStopAutopilot: 无任务无需流转状态")
return
}
startTask(false)
}