bugfix
This commit is contained in:
@@ -6,6 +6,7 @@ import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Rect;
|
||||
import android.net.Uri;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.animation.AccelerateInterpolator;
|
||||
import android.view.animation.Interpolator;
|
||||
@@ -290,7 +291,7 @@ public class TanluManager implements IMogoMarkerClickListener,
|
||||
@Override
|
||||
public void onQueryRoadInfoSuccess(@NotNull List<? extends MarkerExploreWay> roadInfoList) {
|
||||
if (roadInfoList == null || (roadInfoList != null && roadInfoList.size() <= 0)) {
|
||||
if (mKeywords.equals("附近")) {
|
||||
if ( TextUtils.equals(mKeywords,"附近")) {
|
||||
speakFailVoice("未发现附近的特殊路况");
|
||||
} else {
|
||||
speakFailVoice("未发现" + mKeywords + "附近的特殊路况");
|
||||
@@ -311,7 +312,7 @@ public class TanluManager implements IMogoMarkerClickListener,
|
||||
public void onQueryRoadInfoFail(@NotNull String msg, int code) {
|
||||
Logger.e(TAG, "onQueryRoadInfoFail ----- msg = " + msg);
|
||||
// speakFailVoice(searchfaileVoiceStrings[1]);
|
||||
if (mKeywords.equals("附近")) {
|
||||
if (TextUtils.equals(mKeywords,"附近")) {
|
||||
speakFailVoice("未发现附近的特殊路况");
|
||||
} else {
|
||||
speakFailVoice("未发现" + mKeywords + "附近的特殊路况");
|
||||
@@ -457,7 +458,7 @@ public class TanluManager implements IMogoMarkerClickListener,
|
||||
MogoLatLng latLon = poi.getPoint();
|
||||
Double longit; //经度
|
||||
Double lat; //维度
|
||||
if (mKeywords.equals("附近")) {
|
||||
if (TextUtils.equals(mKeywords,"附近")) {
|
||||
Logger.d(TAG, "附近 -onPoiSearched---1---");
|
||||
longit = TanluServiceManager.getLocationClient().getLastKnowLocation().getLongitude();
|
||||
lat = TanluServiceManager.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
@@ -472,7 +473,7 @@ public class TanluManager implements IMogoMarkerClickListener,
|
||||
Logger.e(TAG, "poi == null");
|
||||
Double longit; //经度
|
||||
Double lat; //维度
|
||||
if (mKeywords.equals("附近")) {
|
||||
if (TextUtils.equals(mKeywords,"附近")) {
|
||||
Logger.d(TAG, "附近 -onPoiSearched---2---");
|
||||
longit = TanluServiceManager.getLocationClient().getLastKnowLocation().getLongitude();
|
||||
lat = TanluServiceManager.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
|
||||
Reference in New Issue
Block a user