Merge "Allow adding of completed empty files." into jb-dev

This commit is contained in:
Jeff Sharkey
2012-05-02 19:37:51 -07:00
committed by Android (Google) Code Review

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");
}