Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 533d3546 authored by Jesse Wilson's avatar Jesse Wilson Committed by Android (Google) Code Review
Browse files

Merge "Move the public method HttpDateTime.parse() into AndroidHttpClient." into froyo

parents 75716915 fd472ba9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;