Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_providers_DownloadProvider
Commits
0acd13fe
Commit
0acd13fe
authored
13 years ago
by
Jean-Baptiste Queru
Committed by
android code review
13 years ago
Browse files
Options
Download
Plain Diff
Merge "avoid repetition of retrying download"
parents
3ddc6cc0
579be0d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/com/android/providers/downloads/DownloadInfo.java
src/com/android/providers/downloads/DownloadInfo.java
+2
-5
No files found.
src/com/android/providers/downloads/DownloadInfo.java
View file @
0acd13fe
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment