[3.3.0] fix bug of gp when status change
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user