[base_3.4.0-map-sdk]

This commit is contained in:
zhongchao
2023-08-16 10:51:57 +08:00
parent 74c0a81e68
commit 73a2dfdc95
2 changed files with 5 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ object MapAutoApi {
if(CompileConfig.DEBUG){
Log.w(TAG, "destroyop--:CommonController.instance.exit()")
}
MapDataApi.destory()
MapDataApi.destroy()
if(CompileConfig.DEBUG){
Log.w(TAG, "destroyop--:MapDataApi.destory")
}

View File

@@ -1,5 +1,6 @@
package com.zhidaoauto.map.sdk.open.data
import android.annotation.SuppressLint
import android.app.ActivityManager
import android.content.Context
import android.text.TextUtils
@@ -24,6 +25,7 @@ import com.zhidaoauto.map.sdk.open.road.StopLine
import com.zhidaoauto.map.sdk.open.road.ZebraLine
import com.zhidaoauto.map.sdk.open.routeinfo.RoadInfo
@SuppressLint("StaticFieldLeak")
object MapDataApi {
private val TAG = javaClass.simpleName
@@ -42,7 +44,7 @@ object MapDataApi {
SharedMemoryService.getInstance(context)
}
fun destory(){
fun destroy(){
RoadHelper.getInstance()?.release()
if(CompileConfig.DEBUG){
Log.w(TAG, "destroyop--:RoadHelper.destory")
@@ -51,6 +53,7 @@ object MapDataApi {
if(CompileConfig.DEBUG){
Log.w(TAG, "destroyop--:SharedMemoryService.destory")
}
mContext = null
}
/**