fix: 统一安装事件字符串,修复下载管理-已安装列表错误的刷新机制

This commit is contained in:
chenjuntao
2022-11-14 16:36:11 +08:00
parent d3295f81f6
commit 97a54f1000
22 changed files with 47 additions and 46 deletions

View File

@ -70,7 +70,7 @@ public class InstallUtils {
if (!TextUtils.isEmpty(installVersion) && downloadEntity != null &&
installVersion.equals(downloadEntity.getVersionName())) {
if (!downloadEntity.isPluggable() || PackageUtils.isSignedByGh(context, packageName)) {
EventBus.getDefault().post(new EBPackage("安装", packageName, installVersion));
EventBus.getDefault().post(new EBPackage(EBPackage.TYPE_INSTALLED, packageName, installVersion));
}
}
}