文件整理,删除无用资源
This commit is contained in:
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user