diff --git a/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java b/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java index f14d67a9ef..e0669892f7 100644 --- a/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java +++ b/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java @@ -276,7 +276,9 @@ public class AMapNaviViewWrapper implements IMogoMapView, @Override public void onTouch( MotionEvent motionEvent ) { MogoMapListenerHandler.getInstance().onTouch( motionEvent ); - changeMyLocationType2UnFollow(); + if ( motionEvent.getAction() == MotionEvent.ACTION_DOWN ) { + changeMyLocationType2UnFollow(); + } } /** @@ -579,9 +581,6 @@ public class AMapNaviViewWrapper implements IMogoMapView, return; } MyLocationStyle style = getMyLocationStyle(); - if ( style == null ) { - style = new MyLocationStyle(); - } switch ( mCurrentUIMode ) { case NorthUP_2D: style.myLocationType( MyLocationStyle.LOCATION_TYPE_FOLLOW_NO_CENTER ); @@ -592,6 +591,7 @@ public class AMapNaviViewWrapper implements IMogoMapView, break; } mMapView.getMap().setMyLocationStyle( style ); + Logger.d( TAG, "设置" ); } private void changeMyLocationType2Follow() { diff --git a/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapViewHandler.java b/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapViewHandler.java index 1eaa3557a3..a3135b59d6 100644 --- a/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapViewHandler.java +++ b/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapViewHandler.java @@ -20,7 +20,7 @@ class AMapViewHandler { public static void createMapView( Context context ) { if ( DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE ) { - sMapView = new AMapViewWrapper( new MapView( context ) ); + sMapView = new AMapNaviViewWrapper( new AMapNaviView( context ) ); } else { sMapView = new AMapNaviViewWrapper( new AMapNaviView( context ) ); } diff --git a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java index 01eff7c0c2..c0d2b11e84 100644 --- a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java +++ b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java @@ -229,15 +229,13 @@ public class EntranceFragment extends MvpFragment