From 62b37cf4ec935bd07309d8d6388b5015bad891fc Mon Sep 17 00:00:00 2001 From: yangyakun Date: Tue, 14 Apr 2026 18:38:45 +0800 Subject: [PATCH] =?UTF-8?q?[8.5.0]=20[singapore]=20[=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function/hmi/ui/setting/DebugSettingView.kt | 16 +++++++++++++--- .../src/main/res/layout/view_debug_setting.xml | 10 ++++++++++ 2 files changed, 23 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 566b2fe3cf..0a6857f7b5 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 @@ -158,6 +158,7 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.btnAutoCheck import kotlinx.android.synthetic.main.view_debug_setting.view.btnBrakeThreshold import kotlinx.android.synthetic.main.view_debug_setting.view.btnClearMap import kotlinx.android.synthetic.main.view_debug_setting.view.btnConnectServerIp +import kotlinx.android.synthetic.main.view_debug_setting.view.btnCubisc import kotlinx.android.synthetic.main.view_debug_setting.view.btnDeleteDB import kotlinx.android.synthetic.main.view_debug_setting.view.btnDisconnectIpc import kotlinx.android.synthetic.main.view_debug_setting.view.btnDrawFusion @@ -165,9 +166,6 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.btnEnsureMap import kotlinx.android.synthetic.main.view_debug_setting.view.btnFmd import kotlinx.android.synthetic.main.view_debug_setting.view.btnHdVisualAdjust import kotlinx.android.synthetic.main.view_debug_setting.view.btnIpcReboot -import kotlinx.android.synthetic.main.view_debug_setting.view.btnLanguageChinese -import kotlinx.android.synthetic.main.view_debug_setting.view.btnLanguageEnglish -import kotlinx.android.synthetic.main.view_debug_setting.view.btnLanguageFollowSystem import kotlinx.android.synthetic.main.view_debug_setting.view.btnPassengerReboot import kotlinx.android.synthetic.main.view_debug_setting.view.btnPointCloudColor import kotlinx.android.synthetic.main.view_debug_setting.view.btnPointCloudSize @@ -862,6 +860,18 @@ internal class DebugSettingView @JvmOverloads constructor( ChangeDefaultConfigDialog(ActivityUtils.getTopActivity()).show() true } + btnCubisc.onClick { + // 1. 创建 Intent,action 必须和你定义的一模一样! + val intent = Intent("com.mogo.launcher.debug") + // 2. 必须加上 category(你配置里写了,所以要加) + intent.setClassName( + "com.mogo.launcher.f", // 接收器所在APP包名 + "com.mogo.och.common.module.debug.BizBroadcastReceiver" + ) + intent.putExtra("type","showDebugView") + // 3. 发送广播 + ActivityUtils.getTopActivity().sendBroadcast(intent) + } /** * 自动驾驶检测 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 e78d5fc6e6..f18e666d84 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 @@ -2317,6 +2317,16 @@ android:textSize="@dimen/dp_24" android:visibility="invisible" /> +