fix: bugly#7002 & #15002
This commit is contained in:
@@ -878,10 +878,16 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
}
|
||||
|
||||
private MyLocationStyle getMyLocationStyle() {
|
||||
MyLocationStyle style = null;
|
||||
try {
|
||||
return mMapView.getMap().getMyLocationStyle();
|
||||
style = mMapView.getMap().getMyLocationStyle();
|
||||
} catch ( Exception e ) {
|
||||
return new MyLocationStyle();
|
||||
style = new MyLocationStyle();
|
||||
} finally {
|
||||
if ( style == null ) {
|
||||
style = new MyLocationStyle();
|
||||
}
|
||||
return style;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -465,10 +465,16 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
}
|
||||
|
||||
private MyLocationStyle getMyLocationStyle() {
|
||||
MyLocationStyle style = null;
|
||||
try {
|
||||
return mMapView.getMap().getMyLocationStyle();
|
||||
style = mMapView.getMap().getMyLocationStyle();
|
||||
} catch ( Exception e ) {
|
||||
return new MyLocationStyle();
|
||||
style = new MyLocationStyle();
|
||||
} finally {
|
||||
if ( style == null ) {
|
||||
style = new MyLocationStyle();
|
||||
}
|
||||
return style;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -82,8 +82,8 @@ public class AMapMarkerWrapper implements IMogoMarker, Observer {
|
||||
mMogoMarkerOptions = null;
|
||||
}
|
||||
if ( mMarker != null ) {
|
||||
mMarker.remove();
|
||||
mMarker.setObject( null );
|
||||
mMarker.remove();
|
||||
mMarker = null;
|
||||
}
|
||||
if ( mMovingPointOverlay != null ) {
|
||||
|
||||
Reference in New Issue
Block a user