summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/DownloadInfo.java
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-05-21 13:08:17 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-05-21 13:08:19 -0700
commit0acd13fed2f4d0857ce89565fe94674c09b1e844 (patch)
tree88487d7cde3e68b5b70772875fb516457b05fe48 /src/com/android/providers/downloads/DownloadInfo.java
parent3ddc6cc0e16136d863df51a8e0e36b0558dcde62 (diff)
parent579be0d0d0de6af307ee94af07720a568ed2e7d1 (diff)
downloadandroid_packages_providers_DownloadProvider-0acd13fed2f4d0857ce89565fe94674c09b1e844.tar.gz
android_packages_providers_DownloadProvider-0acd13fed2f4d0857ce89565fe94674c09b1e844.tar.bz2
android_packages_providers_DownloadProvider-0acd13fed2f4d0857ce89565fe94674c09b1e844.zip
Merge "avoid repetition of retrying download"
Diffstat (limited to 'src/com/android/providers/downloads/DownloadInfo.java')
-rw-r--r--src/com/android/providers/downloads/DownloadInfo.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/providers/downloads/DownloadInfo.java b/src/com/android/providers/downloads/DownloadInfo.java
index 304d70fd..c879e7e0 100644
--- a/src/com/android/providers/downloads/DownloadInfo.java
+++ b/src/com/android/providers/downloads/DownloadInfo.java
@@ -312,11 +312,8 @@ public class DownloadInfo {
// is the media mounted?
return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
case Downloads.Impl.STATUS_INSUFFICIENT_SPACE_ERROR:
- // should check space to make sure it is worth retrying the download.
- // but thats the first thing done by the thread when it retries to download
- // it will fail pretty quickly if there is no space.
- // so, it is not that bad to skip checking space availability here.
- return true;
+ // avoids repetition of retrying download
+ return false;
}
return false;
}