From c920d2b7476d84f3ed23e3b30e501c7f0c5feec2 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Mon, 17 Jul 2023 16:22:38 +0800 Subject: [PATCH] =?UTF-8?q?[3.4.0]=E8=B0=83=E6=95=B4=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E7=BA=A2=E7=BB=BF=E7=81=AF=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eagle/core/function/hmi/ui/setting/SOPSettingView.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt index 75691441b2..ce037cd70d 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt @@ -147,14 +147,13 @@ internal class SOPSettingView @JvmOverloads constructor( } } - tbTrafficLight.isChecked = HmiBuildConfig.isShowTrafficLightView + tbTrafficLight.isChecked = !HmiBuildConfig.isShowTrafficLightView tbTrafficLight.setOnCheckedChangeListener { _, isChecked -> hmiAction("SOP 红绿灯标识开关, ",isChecked) - if (!isChecked) { - HmiBuildConfig.isShowTrafficLightView = false + if (isChecked) { + CallerHmiManager.showTrafficLightView() } else { - HmiBuildConfig.isShowTrafficLightView = true - CallerTrafficLightListenerManager.disableTrafficLight() + CallerHmiManager.hideTrafficLightView() } }