From 0ba3055b1e657b0948001d48b19345fb0cd626ff Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Tue, 8 Feb 2011 17:18:27 -0800 Subject: bug:3435895 change a couple of retryable error constants to < 400 so that they are not considered permanent failures Change-Id: I4513e6abcce127f78b5be98ab78c985ed698e43e --- core/java/android/provider/Downloads.java | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/core/java/android/provider/Downloads.java b/core/java/android/provider/Downloads.java index 5557a0dcd157..16990a522466 100644 --- a/core/java/android/provider/Downloads.java +++ b/core/java/android/provider/Downloads.java @@ -566,6 +566,19 @@ public final class Downloads { */ public static final int STATUS_QUEUED_FOR_WIFI = 196; + /** + * This download couldn't be completed due to insufficient storage + * space. Typically, this is because the SD card is full. + */ + public static final int STATUS_INSUFFICIENT_SPACE_ERROR = 198; + + /** + * This download couldn't be completed because no external storage + * device was found. Typically, this is because the SD card is not + * mounted. + */ + public static final int STATUS_DEVICE_NOT_FOUND_ERROR = 199; + /** * This download has successfully completed. * Warning: there might be other status values that indicate success @@ -670,19 +683,6 @@ public final class Downloads { */ public static final int STATUS_TOO_MANY_REDIRECTS = 497; - /** - * This download couldn't be completed due to insufficient storage - * space. Typically, this is because the SD card is full. - */ - public static final int STATUS_INSUFFICIENT_SPACE_ERROR = 498; - - /** - * This download couldn't be completed because no external storage - * device was found. Typically, this is because the SD card is not - * mounted. - */ - public static final int STATUS_DEVICE_NOT_FOUND_ERROR = 499; - /** * This download is visible but only shows in the notifications * while it's in progress. -- cgit v1.2.3-59-g8ed1b