Move the public method HttpDateTime.parse() into AndroidHttpClient.

See bug http://b/2553589

Change-Id: Ide3399c7c63daf9c0b8c18669076f2f4d6e9a876
This commit is contained in:
Jesse Wilson 2010-04-08 14:20:57 -07:00
parent 276ed8df4f
commit fd472ba92c

View File

@ -17,7 +17,7 @@
package com.android.common;
import android.content.SharedPreferences;
import android.net.http.HttpDateTime;
import android.net.http.AndroidHttpClient;
import android.text.format.Time;
import java.util.Map;
@ -243,7 +243,7 @@ public class OperationScheduler {
return true;
} catch (NumberFormatException nfe) {
try {
setMoratoriumTimeMillis(HttpDateTime.parse(retryAfter));
setMoratoriumTimeMillis(AndroidHttpClient.parseDate(retryAfter));
return true;
} catch (IllegalArgumentException iae) {
return false;