From cded8c944d1df4228adc037f5c60fea831cf0749 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Wed, 24 Jul 2024 16:23:06 +0800 Subject: [PATCH] =?UTF-8?q?[6.5.0][Opt]=E6=96=B0=E5=A2=9E=E5=85=A8?= =?UTF-8?q?=E8=A7=88=E6=97=A5=E5=BF=97?= 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, 6 insertions(+), 4 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 ab724d3fd9..a6cada6de5 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 @@ -731,21 +731,21 @@ class TravelRealityView @JvmOverloads constructor( latLng, CallerAutoPilotStatusListenerManager.getLineId(), onSuccess = { bitmap, latLng, lineId -> - if (lineId == CallerAutoPilotStatusListenerManager.getLineId()) { + if (CallerAutoPilotStatusListenerManager.getLineId() != 0L) { val view = EventVideoView(context, title = title, orientation = orientation) view.setBitmap(bitmap) updateVideoMarker(view, latLng) } else { - Log.w(TAG, "downloadImage:onSuccess:lineId不同!") + Log.w(TAG, "downloadImage:onSuccess:lineId为0!") } }, onFailed = { latLng, lineId -> - if (lineId == CallerAutoPilotStatusListenerManager.getLineId()) { + if (CallerAutoPilotStatusListenerManager.getLineId() != 0L) { val view = EventVideoView(context, title = title, orientation = orientation) view.setPlaceHolder() updateVideoMarker(view, latLng) } else { - Log.w(TAG, "downloadImage:onFailed:lineId不同!") + Log.w(TAG, "downloadImage:onFailed:lineId为0!") } }) } @@ -794,6 +794,7 @@ class TravelRealityView @JvmOverloads constructor( view.setPlaceHolder() markerOption.icon(BitmapDescriptorFactory.fromView(view)) } else { + Log.d(TAG, "缓存中未查到对应ip") return@let } } else { @@ -823,6 +824,7 @@ class TravelRealityView @JvmOverloads constructor( liveOptionsList.add(markerOption) } } + Log.d(TAG, "绘制卡片的个数为:${liveOptionsList.size}") // 绘制事件卡片 drawMarkers(DRAW_LIVE_DETAIL, liveOptionsList) adjustCameraWithVertex(vertexList)