去除volley 中TAG的滥用导致无法重复加载同一url,项目整理
This commit is contained in:
@ -123,6 +123,9 @@ public class DownloadTask implements DownloadListener {
|
||||
|| status == DownloadStatus.notfound) {
|
||||
entry.setProgress(0);
|
||||
entry.setPercent(0);
|
||||
if (status == DownloadStatus.hijack) {
|
||||
entry.setError(error);
|
||||
}
|
||||
FileUtils.deleteFile(entry.getPath());
|
||||
DownloadDao.getInstance(context).delete(entry.getUrl());
|
||||
Utils.log(DownloadTask.class.getSimpleName(),
|
||||
|
||||
Reference in New Issue
Block a user