处理一些内存泄漏问题

This commit is contained in:
chenjuntao
2019-03-26 19:45:46 +08:00
parent f6e5cd3fd7
commit 1062cf5924
3 changed files with 9 additions and 3 deletions

View File

@ -70,9 +70,7 @@ public class InstallUtils {
if (!downloadEntity.isPluggable() || PackageUtils.isSignature(context, packageName)) {
EventBus.getDefault().post(new EBPackage("安装", packageName));
}
}
}
}
for (String key : keys) {
@ -109,7 +107,7 @@ public class InstallUtils {
if (mInstance == null) {
synchronized (InstallUtils.class) {
if (mInstance == null) {
mInstance = new InstallUtils(context);
mInstance = new InstallUtils(context.getApplicationContext());
}
}
}