下载任务数支持修改

This commit is contained in:
lyy
2016-11-14 16:56:09 +08:00
parent 493810d0b0
commit bd94e7dd27
8 changed files with 185 additions and 4 deletions

View File

@ -133,6 +133,10 @@ public class DownloadAdapter extends AbsRVAdapter<DownloadEntity, DownloadAdapte
});
}
public void setDownloadNum(int num) {
mManager.getTaskQueue().setDownloadNum(num);
}
private String covertCurrentSize(long currentSize) {
String size = CommonUtil.formatFileSize(currentSize);
return size.substring(0, size.length() - 1);