Merge "Add Delay for data connection retry." into honeycomb-LTE
This commit is contained in:
@@ -144,6 +144,9 @@ public abstract class DataConnectionTracker extends Handler {
|
||||
|
||||
public static final String APN_TYPE_KEY = "apnType";
|
||||
|
||||
/** Delay between APN attempts */
|
||||
protected static final int APN_DELAY_MILLIS = 5000;
|
||||
|
||||
// responds to the setInternalDataEnabled call - used internally to turn off data
|
||||
// for example during emergency calls
|
||||
protected boolean mInternalDataEnabled = true;
|
||||
|
||||
@@ -701,7 +701,8 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
|
||||
notifyDataConnection(reason);
|
||||
mActiveApn = null;
|
||||
if (retryAfterDisconnected(reason)) {
|
||||
trySetupData(reason);
|
||||
// Wait a bit before trying, so we're not tying up RIL command channel.
|
||||
sendMessageDelayed(obtainMessage(EVENT_TRY_SETUP_DATA, reason), APN_DELAY_MILLIS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -101,8 +101,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
|
||||
// call reRegisterNetwork, or pingTest succeeds.
|
||||
private int mPdpResetCount = 0;
|
||||
|
||||
/** Delay between APN attempts */
|
||||
protected static final int APN_DELAY_MILLIS = 5000;
|
||||
|
||||
//***** Constants
|
||||
|
||||
|
||||
Reference in New Issue
Block a user