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"); } }