[opt]1.销毁导航地图时clear起终点list(未清除时可能引起偶现调导航失败)

This commit is contained in:
pangfan
2023-03-14 17:35:31 +08:00
parent ba2932c285
commit cc615011b1

View File

@@ -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;