Allow adding of completed empty files.
Bug: 5281354
Change-Id: I375c3c7ff4ccbb554204ad53a90d35ff4790af6c
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user