This commit is contained in:
laoyuyu
2019-12-26 20:58:08 +08:00
parent 27459e7d9a
commit 685f6b5525
11 changed files with 103 additions and 78 deletions

View File

@@ -125,7 +125,7 @@ public class HttpFileInfoThread implements Runnable {
}
long len = lenAdapter.handleFileLen(conn.getHeaderFields());
if (!FileUtil.checkSDMemorySpace(mEntity.getFilePath(), len)) {
if (!FileUtil.checkMemorySpace(mEntity.getFilePath(), len)) {
failDownload(new TaskException(TAG,
String.format("下载失败内存空间不足filePath: %s, url: %s", mEntity.getDownloadPath(),
mEntity.getUrl())), false);