解决内存泄漏2

This commit is contained in:
wangcongtao
2021-01-08 14:57:25 +08:00
parent 953ee21b8c
commit 59f095e295
6 changed files with 43 additions and 28 deletions

View File

@@ -45,7 +45,7 @@ public class AMapWrapper implements IMogoMap {
public AMapWrapper( AMap map, Context context, IMogoMapUIController controller ) {
this.mAMap = map;
sAMap = map;
mContext = context;
mContext = context.getApplicationContext();
mUIcontroller = controller;
// 设置实现自定义 info window
if(mAMap!=null) {