完成更新推送功能优化0826补充及UI调整 https://gitlab.ghzs.com/pm/halo-app-issues/-/issues/946

This commit is contained in:
juntao
2020-08-26 14:30:28 +08:00
parent cc6c759658
commit d7144265e1
7 changed files with 75 additions and 33 deletions

View File

@ -111,7 +111,7 @@ public class SplashScreenActivity extends BaseActivity {
// 判断是不是这个版本的新用户
if (isNewFirstLaunch) {
// 删除更新后的光环助手包
List<DownloadEntity> all = DownloadManager.getInstance(this).getAll();
List<DownloadEntity> all = DownloadManager.getInstance(this).getAllDownloadEntity();
for (DownloadEntity downloadEntity : all) {
if (downloadEntity.getPackageName().equals(getPackageName())) {
DownloadManager.getInstance(this).cancel(downloadEntity.getUrl(), true, true);