Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onProgressChange速度能控制吗 #7

Open
fayou147 opened this issue Jun 1, 2015 · 2 comments
Open

onProgressChange速度能控制吗 #7

fayou147 opened this issue Jun 1, 2015 · 2 comments

Comments

@fayou147
Copy link

fayou147 commented Jun 1, 2015

No description provided.

@fayou147
Copy link
Author

fayou147 commented Jun 1, 2015

这个在FileDownloadRequest中handleResponse中的delivery.postDownloadProgress(this, fileSize, downloadedSize);之前加一个判断条件
long currTime = SystemClock.uptimeMillis();
if (currTime - lastUpdateTime >= DEFAULT_TIME) {
lastUpdateTime = currTime;
delivery.postDownloadProgress(this, fileSize, downloadedSize);
}

@greylink
Copy link

greylink commented Jul 1, 2015

谢谢,分享。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants