From 8b473ec4b675ade95eec863559d214c4cc2e2bb9 Mon Sep 17 00:00:00 2001 From: lianglihui Date: Wed, 9 Nov 2022 14:49:42 +0800 Subject: [PATCH] =?UTF-8?q?2.12.0=20revert=20=E5=B0=8F=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20213=E5=86=8D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/eagle/core/function/smp/SmallMapFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/SmallMapFragment.java b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/SmallMapFragment.java index bb8ff56c04..4c18ef8844 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/SmallMapFragment.java +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/SmallMapFragment.java @@ -144,7 +144,7 @@ public class SmallMapFragment extends BaseFragment int tempStatus = autoPilotStatusInfo.getPilotmode(); if (tempStatus != 1) { clearPolyline(); - }else if (tempStatus == 0 && autoPilotStatus == 1){ + }else if (tempStatus == 1 && autoPilotStatus == 0){ CallerAutoPilotManager.INSTANCE.getGlobalPath(); } autoPilotStatus = tempStatus; @@ -178,7 +178,7 @@ public class SmallMapFragment extends BaseFragment for (MessagePad.Location routeModel : globalPathResp.getWayPointsList()) { latLngList.add(new MogoLatLng(routeModel.getLatitude(), routeModel.getLongitude())); } - if (latLngList.size() > 0 && autoPilotStatus ==1) { + if (latLngList.size() > 0) { drawablePolyline(latLngList); } else { clearPolyline();