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

* commit 'b829f09737fcbb1e2c92949dce6222d5beacc3c9':
  Allow adding of completed empty files.
This commit is contained in:
Jeff Sharkey
2012-05-02 19:39:46 -07:00
committed by Android Git Automerger

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