[2.15.0] remove down load util progress log

This commit is contained in:
zhongchao
2023-03-07 19:56:05 +08:00
parent 37e5e706c0
commit 0726d916c2

View File

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