Commit 0acd13fe authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

Merge "avoid repetition of retrying download"

parents 3ddc6cc0 579be0d0
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment