Open fayou147 opened 9 years ago
这个在FileDownloadRequest中handleResponse中的delivery.postDownloadProgress(this, fileSize, downloadedSize);之前加一个判断条件 long currTime = SystemClock.uptimeMillis(); if (currTime - lastUpdateTime >= DEFAULT_TIME) { lastUpdateTime = currTime; delivery.postDownloadProgress(this, fileSize, downloadedSize); }
谢谢,分享。
这个在FileDownloadRequest中handleResponse中的delivery.postDownloadProgress(this, fileSize, downloadedSize);之前加一个判断条件 long currTime = SystemClock.uptimeMillis(); if (currTime - lastUpdateTime >= DEFAULT_TIME) { lastUpdateTime = currTime; delivery.postDownloadProgress(this, fileSize, downloadedSize); }