[opt]1.销毁导航地图时clear起终点list(未清除时可能引起偶现调导航失败)
This commit is contained in:
@@ -85,6 +85,8 @@ public class AmapNaviToDestinationModel implements AMapNaviListener {
|
||||
public void destroyAmaNavi(){
|
||||
if (mAMapNavi != null){
|
||||
isPlay = false;
|
||||
sList.clear();
|
||||
eList.clear();
|
||||
mAMapNavi.stopNavi();
|
||||
mAMapNavi.destroy();
|
||||
mAMapNavi = null;
|
||||
|
||||
Reference in New Issue
Block a user