This commit is contained in:
wangcongtao
2020-10-19 11:18:23 +08:00
parent 83f78f8288
commit 7cc699e251
4 changed files with 13 additions and 15 deletions

View File

@@ -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() {

View File

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

View File

@@ -229,15 +229,13 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
mMove2CurrentLocation.setOnClickListener( new OnPreventFastClickListener() {
@Override
public void onClickImpl( View v ) {
final MogoLocation location = mMogoLocationClient.getLastKnowLocation();
if (location != null) {
if (mStatusManager.isDisplayOverview()) {
mStatusManager.setDisplayOverview(TAG, false);
UiThreadHandler.removeCallbacks(mLockCarRunnable);
}
mStatusManager.setUserInteractionStatus(TAG, true, false);
mMApUIController.recoverLockMode();
if (mStatusManager.isDisplayOverview()) {
mStatusManager.setDisplayOverview(TAG, false);
UiThreadHandler.removeCallbacks(mLockCarRunnable);
}
mMApUIController.changeZoom( 16 );
// mMApUIController.recoverLockMode();
// mApis.getRefreshStrategyControllerApi().restartAutoRefreshAtTime( 0 );
}
} );
@@ -522,7 +520,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
public void onTouch(MotionEvent motionEvent) {
switch (motionEvent.getAction()) {
case MotionEvent.ACTION_DOWN:
UiThreadHandler.removeCallbacks(mLockCarRunnable);
break;
case MotionEvent.ACTION_UP:

View File

@@ -828,7 +828,7 @@ public class MogoServices implements IMogoMapListener,
} else {
mHandler.sendEmptyMessageDelayed( ServiceConst.MSG_TYPE_REFRESH_DECREASE, delay );
}
Logger.i( TAG, "下次刷新时间:%ss后", mRefreshRemainingTime );
Logger.i( TAG, "下次刷新时间:%sms后", mRefreshRemainingTime );
}
public void refreshStrategy() {