[6.6.0][Fix]解决偶现的高精地图崩溃的问题

This commit is contained in:
chenfufeng
2024-09-04 11:34:13 +08:00
parent fad19ec4c9
commit d409477cbc
2 changed files with 4 additions and 1 deletions

View File

@@ -695,13 +695,15 @@ class MapView(context: Context, private val mMapStyleParams: IMapStyleParams, pr
if (DEBUG) {
Log.i(TAG, "destroyop--MapEngine.unload-start")
}
mMapEngine.unload()
if (DEBUG) {
Log.i(TAG, "destroyop-mapop-surfaceop----onDetachedFromWindow-over:")
}
}
fun unloadEngine() {
mMapEngine.unload()
}
override fun onSurfaceCreated(gl: GL10, config: EGLConfig) {
if (DEBUG) {

View File

@@ -647,6 +647,7 @@ open class MapAutoView : FrameLayout, LonLatPointListener, ITraffic,ILockLocatio
mTrafficHelper = null
mEventController?.exit()
mPanelManager = null
mMapView?.unloadEngine()
mMapView = null
if (CompileConfig.DEBUG) {
Log.i(TAG, "destroyop--autoop--onDestroy--removeAllViews-start")