From 5f853029b634539f71e72e4daeb35be469021c6f Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Tue, 23 Feb 2021 21:01:53 +0800 Subject: [PATCH] opt --- gradle.properties | 14 +++++++------- .../java/com/mogo/module/share/TanluManager.java | 12 +++++++++--- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/gradle.properties b/gradle.properties index c8b1d0b7c8..612baf2239 100644 --- a/gradle.properties +++ b/gradle.properties @@ -155,19 +155,19 @@ LOGLIB_VERSION = 1.0.4 ######## MogoAiCloudSDK Version # 网络请求 -MOGO_NETWORK_VERSION=1.0.34-SNAPSHOT +MOGO_NETWORK_VERSION=1.0.35-SNAPSHOT # 鉴权 -MOGO_PASSPORT_VERSION=1.0.34-SNAPSHOT +MOGO_PASSPORT_VERSION=1.0.35-SNAPSHOT # 常链接 -MOGO_SOCKET_VERSION=1.0.34-SNAPSHOT +MOGO_SOCKET_VERSION=1.0.35-SNAPSHOT # 数据采集 -MOGO_REALTIME_VERSION=1.0.34-SNAPSHOT +MOGO_REALTIME_VERSION=1.0.35-SNAPSHOT # 探路,道路事件发布,获取 -MOGO_TANLU_VERSION=1.0.34-SNAPSHOT +MOGO_TANLU_VERSION=1.0.35-SNAPSHOT # 直播推流 -MOGO_LIVE_VERSION=1.0.34-SNAPSHOT +MOGO_LIVE_VERSION=1.0.35-SNAPSHOT # 直播拉流 -MOGO_TRAFFICLIVE_VERSION=1.0.34-SNAPSHOT +MOGO_TRAFFICLIVE_VERSION=1.0.35-SNAPSHOT ######## Foundation MogoAiCloud Module # mogoAiCloud apk services diff --git a/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java b/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java index ada9bed5b4..79767d4021 100644 --- a/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java +++ b/modules/mogo-module-share/src/main/java/com/mogo/module/share/TanluManager.java @@ -628,7 +628,6 @@ public class TanluManager implements IMogoMarkerClickListener, private void showBonndsRoadtion() { Logger.e(TAG, "showBonndsRoadtion markerExploreWayList.size() = " + markerExploreWayList.size()); - Logger.d(TAG, "showBonndsRoadtion getMogoList().size() = " + getMogoList().size()); //经度 Double longit = TanluServiceManager.getLocationClient().getLastKnowLocation().getLongitude(); //纬度 @@ -642,8 +641,15 @@ public class TanluManager implements IMogoMarkerClickListener, moveNotFresh(); //第一个参数:调用者,第二个参数:当前自车的位置,第三个参数:需要显示在范围内的点(不包含自车的位置) //第四个参数:显示范围的UI边界,第五个参数:是否锁定自车位置(看业务需要) - mMApUIController.showBounds(ShareConstants.MODEL_NAME, null, - getMogoList(), rect, false); + if (getMogoList() != null && getMogoList().size() > 0) { + Log.d(TAG, "showBonndsRoadtion size = " + getMogoList().size()); + MogoLatLng mogoLatLng = new MogoLatLng(lat, longit); + mMApUIController.showBounds(ShareConstants.MODEL_NAME, mogoLatLng, + getMogoList(), rect, false); + } else { + Log.e(TAG, "getMogoList() == null "); + } + }