From 77c763a32f853f917d2a82a1e6eb4753fe70273a Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Mon, 11 Oct 2021 19:30:12 +0800 Subject: [PATCH] opt --- .../java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt | 2 +- .../mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt index 8282a2b0be..916ea26998 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt @@ -117,7 +117,7 @@ class MoGoHmiFragment : MvpFragment .setTag(tag) .setLayout(notificationView) .setSidePattern(SidePattern.TOP) - .setCountDownTime(10000) + .setCountDownTime(5000) .setGravity(Gravity.CENTER_HORIZONTAL, offsetY = 110) .setImmersionStatusBar(true) .addWarningStatusListener(listenerIMoGo) diff --git a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt index 438087d866..13556f35ce 100644 --- a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt +++ b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt @@ -600,7 +600,7 @@ class MogoPrivateObuManager private constructor() { isGreenLight = false CallerHmiManager.showWarningTrafficLight(1) - val red = currentLight.count_down.toInt() + val red = currentLight.count_down.toInt() + 1 CallerHmiManager.changeCountdownRed(red) CallerHmiManager.changeCountdownGreen(0) CallerHmiManager.changeCountdownYellow(0)