From 1563274a4756db69a54179bdfc74ac37c14b086b Mon Sep 17 00:00:00 2001 From: zhongchao Date: Sun, 25 Jun 2023 17:40:37 +0800 Subject: [PATCH] [3.3.0] fix bug of gp when status change --- .../com/mogo/eagle/core/function/smp/view/SmallMapView.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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))