下载管理相关优化

This commit is contained in:
chenjuntao
2021-08-21 10:57:45 +08:00
parent 9c044ae98b
commit 1d9e1bc9d8
74 changed files with 1763 additions and 118 deletions

View File

@ -64,7 +64,7 @@ public class InstallUtils {
keys.add(packageName);
DownloadEntity downloadEntity = DownloadManager.getInstance(context).getDownloadEntityByPackageName(packageName);
String installVersion = PackageUtils.getVersionByPackage(packageName);
String installVersion = PackageUtils.getVersionNameByPackageName(packageName);
if (!TextUtils.isEmpty(installVersion) && downloadEntity != null &&
installVersion.equals(downloadEntity.getVersionName())) {
if (!downloadEntity.isPluggable() || PackageUtils.isSignedByGh(context, packageName)) {