From 7ce1ec62884e1edf5e1feb325fcd284b63e0d0f7 Mon Sep 17 00:00:00 2001 From: xinfengkun Date: Tue, 5 Mar 2024 17:39:37 +0800 Subject: [PATCH] =?UTF-8?q?[630][=E8=B0=83=E8=AF=95=E7=AA=97]=20=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E7=AA=97=E5=9F=9F=E6=8E=A7=E8=BF=9E=E6=8E=A5=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=AF=81=E4=B9=A6=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hmi/ui/setting/DebugSettingView.kt | 7 +++- .../main/res/layout/view_debug_setting.xml | 40 ++++++++++++++++++- .../eagle/core/data/constants/MoGoConfig.kt | 2 + 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt index db91cc7565..4cd0e2358b 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt @@ -1260,8 +1260,11 @@ internal class DebugSettingView @JvmOverloads constructor( CallerAutoPilotControlManager.recordPackage() } } - - + //是否启用证书认证 + cbSsl.isChecked = SharedPrefsMgr.getInstance().getBoolean(MoGoConfig.AUTOPILOT_CERTIFICATION,false) + cbSsl.setOnCheckedChangeListener { _, isChecked -> + SharedPrefsMgr.getInstance().putBoolean(MoGoConfig.AUTOPILOT_CERTIFICATION,isChecked) + } } /** diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml index 5c813a0e19..aa99aae206 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml @@ -900,12 +900,50 @@ app:layout_constraintTop_toTopOf="@id/btnSetAutopilotIP" /> + + + + + + + +