Switch constants to existing standard values.
Change-Id: I1dc5a6b7ceb5b13975a9366f11a945f5b111842c
This commit is contained in:
parent
eba3ec75cd
commit
d1bae6c1e8
@ -21,6 +21,7 @@ import android.content.Context;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
import android.os.Bundle;
|
||||
import android.text.format.DateUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.emailcommon.provider.Account;
|
||||
@ -40,14 +41,6 @@ public abstract class AbstractSyncService implements Runnable {
|
||||
|
||||
public String TAG = "AbstractSyncService";
|
||||
|
||||
public static final int SECONDS = 1000;
|
||||
public static final int MINUTES = 60*SECONDS;
|
||||
public static final int HOURS = 60*MINUTES;
|
||||
public static final int DAYS = 24*HOURS;
|
||||
|
||||
public static final int CONNECT_TIMEOUT = 30*SECONDS;
|
||||
public static final int NETWORK_WAIT = 15*SECONDS;
|
||||
|
||||
public static final int EXIT_DONE = 0;
|
||||
public static final int EXIT_IO_ERROR = 1;
|
||||
public static final int EXIT_LOGIN_FAILURE = 2;
|
||||
@ -275,7 +268,7 @@ public abstract class AbstractSyncService implements Runnable {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(10*SECONDS);
|
||||
Thread.sleep(10 * DateUtils.SECOND_IN_MILLIS);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user