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

android/common/util/DownloadManagerPro.java getBytesAndStatus 当要查询的文件是大文件时总文件大小返回值会越界,返回负整数 #33

Open
vikingden8 opened this issue Dec 27, 2016 · 1 comment

Comments

@vikingden8
Copy link

Hi,Trinea:
android/common/util/DownloadManagerPro.java中方法getBytesAndStatus 当要查询的文件是大文件时(比如2GB)总文件大小返回值会越界,返回负整数,建议返回值类型修改为long数组.

@Trinea
Copy link
Owner

Trinea commented Dec 28, 2016

感谢反馈,这确实是个问题,暂时没时间处理,哪位朋友有兴趣可以修改了提交 PR 过来。

可能要注意的是较老的 Android 版本 total_size 是 int 型,最新版已经是 long 型,所以这块还需要有个版本兼容的判断处理。

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