diff options
author | Steve Howard <showard@google.com> | 2010-09-16 12:02:03 -0700 |
---|---|---|
committer | Steve Howard <showard@google.com> | 2010-09-20 13:44:51 -0700 |
commit | a9e87c9cc375b8be43a05ad641545db26eee0d46 (patch) | |
tree | 75a2ce541c418fcdd55b22ab59144969f732fe4b /core/java/android/provider/Downloads.java | |
parent | 8544560ccc43de7ff49d91866f461f5572f0b147 (diff) | |
download | frameworks_base-a9e87c9cc375b8be43a05ad641545db26eee0d46.zip frameworks_base-a9e87c9cc375b8be43a05ad641545db26eee0d46.tar.gz frameworks_base-a9e87c9cc375b8be43a05ad641545db26eee0d46.tar.bz2 |
New error status for "destination file already exists".
Also changing the behavior of the local URI column slightly to better
match the spec -- it should return the client-provided destination so
that it's valid even if the download failed.
Change-Id: Ibf9c07519e647e677ebac8b334b9f2e930e47033
Diffstat (limited to 'core/java/android/provider/Downloads.java')
-rw-r--r-- | core/java/android/provider/Downloads.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/provider/Downloads.java b/core/java/android/provider/Downloads.java index 74c7372..871a044 100644 --- a/core/java/android/provider/Downloads.java +++ b/core/java/android/provider/Downloads.java @@ -1077,7 +1077,12 @@ public final class Downloads { /** * The lowest-valued error status that is not an actual HTTP status code. */ - public static final int MIN_ARTIFICIAL_ERROR_STATUS = 489; + public static final int MIN_ARTIFICIAL_ERROR_STATUS = 488; + + /** + * The requested destination file already exists. + */ + public static final int STATUS_FILE_ALREADY_EXISTS_ERROR = 488; /** * Some possibly transient error occurred, but we can't resume the download. |