diff --git a/.idea/misc.xml b/.idea/misc.xml index 2dc54c489f..707ee6e613 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java index e88909d290..32bb168011 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluCardViewFragment.java @@ -1263,7 +1263,9 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo; @Override public void onSuccess(VoiceSearchResult o) { String discription = o.getResult().getDescription(); + Log.d(TAG, "getVoiceControlRoadData onSuccess ----1--->"); if (o.getResult().getInformations() != null && o.getResult().getInformations().size() > 0) { + Log.d(TAG, "getVoiceControlRoadData onSuccess ----2--->"); if (markerExploreWayList != null && markerExploreWayList.size() > 0) { markerExploreWayList.clear(); //刷新之前先删除之前的,然后再添加成请求的 currentPosition = 0; @@ -1283,7 +1285,6 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo; if (informationList == null || (informationList != null && informationList.size() == 0)) { return; } - //清除探路之前的数据 mMarkerManager.removeMarkers(TanluConstants.MODEL_NAME); //添加埋点数据 @@ -1322,8 +1323,10 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo; } else { if (!TextUtils.isEmpty(discription)) { + Log.d(TAG, "getVoiceControlRoadData discription != null else ----1--->"); AIAssist.getInstance(getContext()).speakTTSVoice(discription, null); } else { + Log.d(TAG, "getVoiceControlRoadData discription == null else ----2--->"); AIAssist.getInstance(getContext()).speakTTSVoice("未找到其他车主分享的路况信息", null); } } diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluServiceHandler.java b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluServiceHandler.java index d93a4bec33..116483aed8 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluServiceHandler.java +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluServiceHandler.java @@ -37,7 +37,8 @@ public class TanluServiceHandler { mMapService = ( IMogoMapService ) ARouter.getInstance().build( MogoServicePaths.PATH_SERVICES_MAP ).navigation( context ); mImageloader = ( IMogoImageloader ) ARouter.getInstance().build( MogoServicePaths.PATH_UTILS_IMAGE_LOADER ).navigation( context ); mPoiSearch = mMapService.getPoiSearch( context, new MogoPoiSearchQuery() ); - mLocationClient = mMapService.getLocationClient( context ); +// mLocationClient = mMapService.getLocationClient( context ); + mLocationClient = mMapService.getSingletonLocationClient(context); mMarkerManager = mMapService.getMarkerManager( context ); mNavi = mMapService.getNavi( context ); mMapUIController = mMapService.getMapUIController();