Fixed downloaded pages starting from -1

This commit is contained in:
seven332 committed 2015-08-24 00:05:41 +08:00
1 parent 49b7109e55
commit 91fd6c2de8
2 files changed
+2 -2

No files matched your search

@@ -32,7 +32,7 @@ public class DownloadInfo {
// byte/second, -1 for can't get speed now
public long speed;
// -1 for unknown
public int download = -1;
public int download = 0;
// -1 for unknown
public int total = -1;
// Integer.MAX_VALUE for unknown
@@ -473,7 +473,7 @@ public class DownloadManager {
private void releaseCurrent() {
if (mCurrentTask != null) {
mCurrentTask.speed = -1;
mCurrentTask.download = -1;
mCurrentTask.download = 0;
mCurrentTask.total = -1;
mCurrentTask = null;
mCurrentSpider.removeSpiderSpiderListener(mDownloadSpiderListener);