[3.3.0] fix bug of gp when status change

This commit is contained in:
zhongchao
2023-06-25 17:40:37 +08:00
parent 20f7df48c7
commit 1563274a47

View File

@@ -324,6 +324,12 @@ class SmallMapView @JvmOverloads constructor(
if (globalPathResp == null || globalPathResp.wayPointsList.size == 0) {
return
}
if(CallerAutoPilotStatusListenerManager.getState() != 2){
UiThreadHandler.post {
clearPolyline()
}
return
}
val latLngList: MutableList<MogoLatLng> = ArrayList()
for (routeModel in globalPathResp.wayPointsList) {
latLngList.add(MogoLatLng(routeModel.latitude, routeModel.longitude))