From 1a48c29951a4f9c005bc55fe8bf8ef8513526bb0 Mon Sep 17 00:00:00 2001 From: xuxinchao <13522809046@163.com> Date: Mon, 20 Jun 2022 12:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 乘客屏不显示监控信息弹窗 --- .../core/function/report/IPCReportManager.kt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt index 95be0dd32a..b67437298d 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/report/IPCReportManager.kt @@ -5,6 +5,7 @@ import com.mogo.eagle.core.data.report.ReportEntity import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager import com.mogo.eagle.core.function.call.hmi.CallerHmiManager +import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils import com.mogo.eagle.core.utilcode.util.TimeUtils import mogo_msg.MogoReportMsg @@ -25,8 +26,11 @@ class IPCReportManager : IMoGoAutopilotStatusListener { } fun initServer(){ - // 添加 ADAS状态 监听 - CallerAutoPilotStatusListenerManager.addListener(TAG, this) + //乘客屏不显示监控信息弹窗,只在司机端提示 + if(AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)){ + // 添加 ADAS状态 监听 + CallerAutoPilotStatusListenerManager.addListener(TAG, this) + } } /** @@ -50,8 +54,11 @@ class IPCReportManager : IMoGoAutopilotStatusListener { } fun destroy(){ - // 移除 ADAS状态 监听 - CallerAutoPilotStatusListenerManager.removeListener(TAG) + //乘客屏不显示监控信息弹窗,只在司机端提示 + if(AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)){ + // 移除 ADAS状态 监听 + CallerAutoPilotStatusListenerManager.removeListener(TAG) + } } } \ No newline at end of file