diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt index 46f3afc287..6203de28d4 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt @@ -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 = ArrayList() for (routeModel in globalPathResp.wayPointsList) { latLngList.add(MogoLatLng(routeModel.latitude, routeModel.longitude))