From e2f3d39b1d911e3cffd110e52fcf8e6ac040b3e9 Mon Sep 17 00:00:00 2001 From: wangmingjun Date: Tue, 24 Oct 2023 19:57:51 +0800 Subject: [PATCH] =?UTF-8?q?[6.1.2=E4=BC=98=E5=8C=96]=20=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=87=AA=E9=A9=BE=E5=80=92=E8=AE=A1=E6=97=B65s=20bug=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../och/common/module/wigets/StartAutopilotAnimationView.kt | 3 +-- .../main/java/com/mogo/och/taxi/constant/TaxiUnmannedConst.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt index 5a27d8dc0d..b6166b60c6 100644 --- a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt +++ b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt @@ -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() diff --git a/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/taxi/constant/TaxiUnmannedConst.kt b/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/taxi/constant/TaxiUnmannedConst.kt index 7f6575423b..e759aef583 100644 --- a/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/taxi/constant/TaxiUnmannedConst.kt +++ b/OCH/taxi/unmanned-driver/src/main/java/com/mogo/och/taxi/constant/TaxiUnmannedConst.kt @@ -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 // 自动启动自驾倒数计时