note the code ,the reason of this -> error

This commit is contained in:
zhongchao
2021-02-23 15:56:32 +08:00
parent 7fb6eb5f86
commit b58eed7512

View File

@@ -287,45 +287,45 @@ public class TanluManager implements IMogoMarkerClickListener,
}
if (voiceData != null) {
mTanluModelData.queryRodeInfo(mContext, mKeywords, voiceData, new RoadInfoCallback() {
@Override
public void onQueryRoadInfoSuccess(@NotNull List<? extends MarkerExploreWay> roadInfoList) {
if (roadInfoList == null || (roadInfoList != null && roadInfoList.size() <= 0)) {
if ( TextUtils.equals(mKeywords,"附近")) {
speakFailVoice("未发现附近的特殊路况");
} else {
speakFailVoice("未发现" + mKeywords + "附近的特殊路况");
}
moveToMarcker(currentLat, currentLon);
return;
}
Logger.d(TAG, "onQueryRoadInfoSuccess roadInfoList.size() = " + roadInfoList.size()
+ " >>currentLat = " + currentLat + " -->currentLon = " + currentLon);
MogoLocation location = TanluServiceManager.getLocationClient().getLastKnowLocation();
if (location != null) {
mCity = location.getCityName();
}
addMarkersAction((List<MarkerExploreWay>) roadInfoList, currentLat, currentLon);
}
@Override
public void onQueryRoadInfoFail(@NotNull String msg, int code) {
Logger.e(TAG, "onQueryRoadInfoFail ----- msg = " + msg);
// speakFailVoice(searchfaileVoiceStrings[1]);
if (TextUtils.equals(mKeywords,"附近")) {
speakFailVoice("未发现附近的特殊路况");
} else {
speakFailVoice("未发现" + mKeywords + "附近的特殊路况");
}
moveToMarcker(currentLat, currentLon);
}
@Override
public void onLocatSuccess(double lat, double lon) {
currentLat = lat;
currentLon = lon;
}
});
// mTanluModelData.queryRodeInfo(mContext, mKeywords, voiceData, new RoadInfoCallback() {
// @Override
// public void onQueryRoadInfoSuccess(@NotNull List<? extends MarkerExploreWay> roadInfoList) {
// if (roadInfoList == null || (roadInfoList != null && roadInfoList.size() <= 0)) {
// if ( TextUtils.equals(mKeywords,"附近")) {
// speakFailVoice("未发现附近的特殊路况");
// } else {
// speakFailVoice("未发现" + mKeywords + "附近的特殊路况");
// }
// moveToMarcker(currentLat, currentLon);
// return;
// }
// Logger.d(TAG, "onQueryRoadInfoSuccess roadInfoList.size() = " + roadInfoList.size()
// + " >>currentLat = " + currentLat + " -->currentLon = " + currentLon);
// MogoLocation location = TanluServiceManager.getLocationClient().getLastKnowLocation();
// if (location != null) {
// mCity = location.getCityName();
// }
// addMarkersAction((List<MarkerExploreWay>) roadInfoList, currentLat, currentLon);
// }
//
// @Override
// public void onQueryRoadInfoFail(@NotNull String msg, int code) {
// Logger.e(TAG, "onQueryRoadInfoFail ----- msg = " + msg);
//// speakFailVoice(searchfaileVoiceStrings[1]);
// if (TextUtils.equals(mKeywords,"附近")) {
// speakFailVoice("未发现附近的特殊路况");
// } else {
// speakFailVoice("未发现" + mKeywords + "附近的特殊路况");
// }
// moveToMarcker(currentLat, currentLon);
// }
//
// @Override
// public void onLocatSuccess(double lat, double lon) {
// currentLat = lat;
// currentLon = lon;
// }
// });
}
}