fix: bugly#7002 & #15002
This commit is contained in:
@@ -878,10 +878,16 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private MyLocationStyle getMyLocationStyle() {
|
private MyLocationStyle getMyLocationStyle() {
|
||||||
|
MyLocationStyle style = null;
|
||||||
try {
|
try {
|
||||||
return mMapView.getMap().getMyLocationStyle();
|
style = mMapView.getMap().getMyLocationStyle();
|
||||||
} catch ( Exception e ) {
|
} 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() {
|
private MyLocationStyle getMyLocationStyle() {
|
||||||
|
MyLocationStyle style = null;
|
||||||
try {
|
try {
|
||||||
return mMapView.getMap().getMyLocationStyle();
|
style = mMapView.getMap().getMyLocationStyle();
|
||||||
} catch ( Exception e ) {
|
} 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;
|
mMogoMarkerOptions = null;
|
||||||
}
|
}
|
||||||
if ( mMarker != null ) {
|
if ( mMarker != null ) {
|
||||||
mMarker.remove();
|
|
||||||
mMarker.setObject( null );
|
mMarker.setObject( null );
|
||||||
|
mMarker.remove();
|
||||||
mMarker = null;
|
mMarker = null;
|
||||||
}
|
}
|
||||||
if ( mMovingPointOverlay != null ) {
|
if ( mMovingPointOverlay != null ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user