[6.1.2优化] 启动自驾倒计时5s bug处理
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 // 自动启动自驾倒数计时
|
||||
|
||||
|
||||
Reference in New Issue
Block a user