文件整理,删除无用资源

This commit is contained in:
huangzhuanghua
2016-10-25 16:39:11 +08:00
parent 190296e533
commit 4471d95482
88 changed files with 2017 additions and 4560 deletions

View File

@ -340,7 +340,8 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
DownloadEntity downloadEntity = null;
for (DownloadEntity entity : DownloadManager.getInstance(getApplicationContext()).getAll()) {
if (entity.getStatus().equals(DownloadStatus.done)) {
if (entity.getStatus().equals(DownloadStatus.done)
&& !PackageUtils.isInstalled(getApplicationContext(), entity.getPackageName())) {
if (downloadEntity == null) {
downloadEntity = entity;
} else if (entity.getEnd() > downloadEntity.getEnd()) {