From 69b8e53e146f02da8f294b9b12419061b8e23336 Mon Sep 17 00:00:00 2001 From: donghongyu Date: Thu, 5 Jan 2023 19:15:07 +0800 Subject: [PATCH] =?UTF-8?q?[dev=5Farch=5Fopt=5F3.0]=20[Change]=20[1?= =?UTF-8?q?=E3=80=81=E6=81=A2=E5=A4=8D=E4=B8=80=E4=BA=9B=E5=9C=A8=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E7=9B=91=E5=90=AC=E6=97=B6=E5=80=99=E7=9A=84=E8=B0=83?= =?UTF-8?q?=E7=94=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../function/api/autopilot/IMoGoAutopilotStatusListener.kt | 1 - .../call/autopilot/CallerAutoPilotStatusListenerManager.kt | 5 ++++- .../autopilot/CallerAutopilotCarConfigListenerManager.kt | 5 +++++ .../call/autopilot/CallerAutopilotIdentifyListenerManager.kt | 4 ++++ .../eagle/core/function/call/hmi/CallerHmiListenerManager.kt | 4 ++++ 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/core/mogo-core-function-api/src/main/java/com/mogo/eagle/core/function/api/autopilot/IMoGoAutopilotStatusListener.kt b/core/mogo-core-function-api/src/main/java/com/mogo/eagle/core/function/api/autopilot/IMoGoAutopilotStatusListener.kt index 73aa0a4baa..86208cc151 100644 --- a/core/mogo-core-function-api/src/main/java/com/mogo/eagle/core/function/api/autopilot/IMoGoAutopilotStatusListener.kt +++ b/core/mogo-core-function-api/src/main/java/com/mogo/eagle/core/function/api/autopilot/IMoGoAutopilotStatusListener.kt @@ -41,7 +41,6 @@ interface IMoGoAutopilotStatusListener { */ fun onAutopilotIpcConnectStatusChanged(status: Int, reason: String?) {} - /** * 工控机主动查询 AdasManager#sendStatusQueryReq(),后会收到如下回调 */ diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutoPilotStatusListenerManager.kt b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutoPilotStatusListenerManager.kt index fff9e788b6..a19f54dc4f 100644 --- a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutoPilotStatusListenerManager.kt +++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutoPilotStatusListenerManager.kt @@ -23,7 +23,6 @@ object CallerAutoPilotStatusListenerManager : CallerBase?) { M_LISTENERS.forEach { @@ -48,6 +51,7 @@ object CallerAutopilotIdentifyListenerManager : CallerBase() { // 存储最后一次回调的数据,当有新当位置注册了监听将此数据回调过去,防止有些模块注册顺序问题导致无法获取最新状态 private var mIsChecked: Boolean = false + override fun doSomeAfterAddListener(tag: String, listener: IMoGoCheckAutoPilotBtnListener) { + listener.onCheck(mIsChecked) + } + /** * 触发自动驾驶按钮选中监听 * @param isChecked 选中状态