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:47:09 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-21 13:47:09 -0700
commitc1df0651e86ab6d0918cfac86ff54d3fb3781a69 (patch)
tree83fef576f3a86238a589bbe95f2e0b87fca28d89 /src/com/android/providers/downloads/DownloadInfo.java
parent3b696ab3c80388a4f1a413d39d536d2858b9f4e5 (diff)
parent0acd13fed2f4d0857ce89565fe94674c09b1e844 (diff)
downloadandroid_packages_providers_DownloadProvider-c1df0651e86ab6d0918cfac86ff54d3fb3781a69.tar.gz
android_packages_providers_DownloadProvider-c1df0651e86ab6d0918cfac86ff54d3fb3781a69.tar.bz2
android_packages_providers_DownloadProvider-c1df0651e86ab6d0918cfac86ff54d3fb3781a69.zip
am 0acd13fe: Merge "avoid repetition of retrying download"
* commit '0acd13fed2f4d0857ce89565fe94674c09b1e844': 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 28adfbdf..9ce58cd8 100644
--- a/src/com/android/providers/downloads/DownloadInfo.java
+++ b/src/com/android/providers/downloads/DownloadInfo.java
@@ -316,11 +316,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;
}