fix: 修复畅玩空间和畅玩游戏的更新问题

feat: 添加暴力的畅玩游戏备份/恢复逻辑
This commit is contained in:
juntao
2022-06-30 14:14:16 +08:00
parent 983bbfc309
commit 2c3a395b50
12 changed files with 176 additions and 31 deletions

View File

@ -144,7 +144,7 @@ public class UpdateManager {
}
if (DownloadStatus.done.equals(downloadEntity.getStatus())) {
DownloadManager.getInstance().cancel(downloadEntity.getUrl(), false, true);
DownloadManager.getInstance().cancel(downloadEntity.getUrl(), false, true, false);
if (downloadDialog != null) {
try {
downloadDialog.dismiss();
@ -517,7 +517,7 @@ public class UpdateManager {
}
downloadEntity.setPackageName(mApplicationContext.getPackageName());
DownloadManager.getInstance().cancel(appEntity.getUrl(), true, true);
DownloadManager.getInstance().cancel(appEntity.getUrl(), true, true, false);
DownloadManager.getInstance().pauseAll();
AppExecutor.getUiExecutor().executeWithDelay(() -> {