Move the public method HttpDateTime.parse() into AndroidHttpClient.
See bug http://b/2553589 Change-Id: Ide3399c7c63daf9c0b8c18669076f2f4d6e9a876
This commit is contained in:
parent
276ed8df4f
commit
fd472ba92c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user