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")