优化地图手势操作和自动定位冲突 - 2

This commit is contained in:
wangcongtao
2020-10-21 10:45:35 +08:00
parent 70760cc0f7
commit 3c5a59cab1
2 changed files with 7 additions and 4 deletions

View File

@@ -284,10 +284,12 @@ public class AMapNaviViewWrapper implements IMogoMapView,
if ( motionEvent.getAction() == MotionEvent.ACTION_DOWN ) {
changeMyLocationType2UnFollow();
}
try {
bnHooker.clearAllMessages();
} catch ( Exception e ) {
e.printStackTrace();
if ( motionEvent.getAction() != MotionEvent.ACTION_UP ) {
try {
bnHooker.clearAllMessages();
} catch ( Exception e ) {
e.printStackTrace();
}
}
}

View File

@@ -1022,6 +1022,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
public void onCloseCurrentSelectedMarker(){
if ( mLastCheckMarker != null && !mLastCheckMarker.isDestroyed()) {
closeMarker( mLastCheckMarker );
mLastCheckMarker = null;
}
}
}