fixed voice nearby bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user