commit | 33f95eda3d24b6364cab343f10d01490e2f53d44 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed May 02 17:07:54 2012 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed May 02 17:07:54 2012 -0700 |
tree | c55ce6560a7e53264afd6b84397debf38ef65938 | |
parent | f2dc6fc442385e08745762fcc2468ad89e2c78dc [diff] [blame] |
Allow adding of completed empty files. Bug: 5281354 Change-Id: I375c3c7ff4ccbb554204ad53a90d35ff4790af6c
diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index 0713127..93f732c 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java
@@ -1155,7 +1155,7 @@ validateArgumentIsNonEmpty("description", description); validateArgumentIsNonEmpty("path", path); validateArgumentIsNonEmpty("mimeType", mimeType); - if (length <= 0) { + if (length < 0) { throw new IllegalArgumentException(" invalid value for param: totalBytes"); }