summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/DownloadThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/providers/downloads/DownloadThread.java')
-rwxr-xr-xsrc/com/android/providers/downloads/DownloadThread.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java
index 88cd9162..517d8f8f 100755
--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -583,7 +583,7 @@ public class DownloadThread implements Runnable {
*/
private void writeDataToDestination(State state, byte[] data, int bytesRead, OutputStream out)
throws StopRequestException {
- mStorageManager.verifySpaceBeforeWritingToFile(
+ mStorageManager.verifySpaceBeforeWritingToFile(mContext,
mInfo.mDestination, state.mFilename, bytesRead);
boolean forceVerified = false;
@@ -595,7 +595,8 @@ public class DownloadThread implements Runnable {
// TODO: better differentiate between DRM and disk failures
if (!forceVerified) {
// couldn't write to file. are we out of space? check.
- mStorageManager.verifySpace(mInfo.mDestination, state.mFilename, bytesRead);
+ mStorageManager.verifySpace(mContext, mInfo.mDestination,
+ state.mFilename, bytesRead);
forceVerified = true;
} else {
throw new StopRequestException(Downloads.Impl.STATUS_FILE_ERROR,