[6.1.2优化] 启动自驾倒计时5s bug处理

This commit is contained in:
wangmingjun
2023-10-24 19:57:51 +08:00
parent 46d8adc60b
commit e2f3d39b1d
2 changed files with 2 additions and 3 deletions

View File

@@ -36,7 +36,6 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
private val closeWarningTask: Runnable = Runnable {
//开始倒计时
countDownTimer()
showWarning(DirectionEnum.ALERT_WARNING_NON)
}
@@ -183,7 +182,6 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
}
private fun countDownTimer() {
startAutopilotTip.visibility = VISIBLE
startTimer = object : CountDownTimerExt(ALL_CLOSE_TIMER, 1000L) {// 5s倒计时后开启自驾
@@ -197,6 +195,7 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
}
override fun onTimerFinish() {
cancelCountdown()
//倒计时结束了...
UiThreadHandler.post {
SoundPoolHelper.getSoundPoolHelper().releaseSoundPool()

View File

@@ -84,7 +84,7 @@ class TaxiUnmannedConst {
const val START_PREPARE_TO_START_TASK_INTERVAL = 0L // 直接拉取接驾任务
const val START_PREPARE_TASK_RETRY_INTERVAL = 10 * 1000L // 直接拉取接驾任务
const val START_PREPARE_TASK_RETRY_INTERVAL = 5 * 1000L // 拉取任务失败重试 5s
const val START_AUTOPILOT_COUNTDOWN_INTERVAL = 5 * 1000L // 自动启动自驾倒数计时