From ae8c5d5fd1ff3605cdf89b4c7cc4e7076efaf164 Mon Sep 17 00:00:00 2001 From: jiaguofeng Date: Tue, 21 Jul 2020 17:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=91=E5=90=AC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mogo/map/impl/custom/AMapViewWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java b/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java index 5f5ed9d7fc..99876aaaf1 100644 --- a/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java +++ b/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java @@ -78,6 +78,7 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca public AMapViewWrapper(MapAutoView mMapView) { Logger.i(TAG, "autoop--AMapViewWrapper: init"); this.mMapView = mMapView; + initListeners(); this.mIMap = new AMapWrapper(this.mMapView.getMapAutoViewHelper(), this.mMapView, this); } @@ -195,7 +196,7 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca mMapView.onCreate(bundle); Logger.d(TAG, "map onCreate"); initMapView(); - initListeners(); + // initMyLocation(); } } @@ -204,7 +205,6 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca public void onResume() { if (mMapView != null) { mMapView.onResume(); - initListeners(); Logger.d(TAG, "map onResume"); } }