Allow adding of completed empty files.

Bug: 5281354
Change-Id: I375c3c7ff4ccbb554204ad53a90d35ff4790af6c
This commit is contained in:
Jeff Sharkey
2012-05-02 17:07:54 -07:00
parent f2dc6fc442
commit 33f95eda3d

View File

@@ -1155,7 +1155,7 @@ public class DownloadManager {
validateArgumentIsNonEmpty("description", description);
validateArgumentIsNonEmpty("path", path);
validateArgumentIsNonEmpty("mimeType", mimeType);
if (length <= 0) {
if (length < 0) {
throw new IllegalArgumentException(" invalid value for param: totalBytes");
}