写死下载链接

This commit is contained in:
lixiaopeng
2022-11-09 19:11:02 +08:00
parent 387cb352f6
commit 8adfa6a16c
2 changed files with 3 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ public class DownloadTask implements DownloadCallBack {
//每500毫秒发送刷新进度事件
if (System.currentTimeMillis() - curTime > 500 || finishedProgress == fileBean.getLength()) {
int progress = (int) (finishedProgress * 1.0 / fileBean.getLength() * 100);
Log.d(DOWN_LOAD_TAG, "length = $length ----- progress = progress");
fileBean.setFinished(finishedProgress);
DownloadData downloadData = new DownloadData();
downloadData.setUrl(fileBean.getUrl());