From 0f24981d59a7678d5f9dbd659a833fba5ea3aad2 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Thu, 18 Jul 2024 16:07:20 +0800 Subject: [PATCH] =?UTF-8?q?[6.5.0][Fix]=E8=A7=A3=E5=86=B3=E6=96=B0?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E4=B8=8D=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/eagle/core/function/view/TravelRealityView.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt index 5b2e76380b..ff5ed5ab6d 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/TravelRealityView.kt @@ -360,9 +360,9 @@ class TravelRealityView @JvmOverloads constructor( Log.d(TAG, "onAttachedToWindow") initHandlers() advanceRequest() - CallerPlanningRottingListenerManager.addListener(TAG, this) + CallerPlanningRottingListenerManager.addListener("${TAG}${this.hashCode()}", this) // 注册定位监听 - CallerChassisLocationGCJ02ListenerManager.addListener(TAG, this) + CallerChassisLocationGCJ02ListenerManager.addListener("${TAG}${this.hashCode()}", this) } override fun onDetachedFromWindow() { @@ -371,8 +371,8 @@ class TravelRealityView @JvmOverloads constructor( deviceList = null retryCount = 0 // 注册定位监听 - CallerChassisLocationGCJ02ListenerManager.removeListener(TAG) - CallerPlanningRottingListenerManager.removeListener(TAG) + CallerChassisLocationGCJ02ListenerManager.removeListener("${TAG}${this.hashCode()}") + CallerPlanningRottingListenerManager.removeListener("${TAG}${this.hashCode()}") nonFrequentHandler?.looper?.quitSafely() nonFrequentHandler = null } @@ -385,7 +385,7 @@ class TravelRealityView @JvmOverloads constructor( private fun advanceRequest() { isRoadTrackReq = true - Log.d(TAG, "请求获取智慧导致轨迹!") + Log.d(TAG, "请求获取智慧道路轨迹!") // 获取智慧道路轨迹 travelNetWorkModel.getCityRoadTrack(onSuccess = { Log.d(TAG, "Road track result is:$it")