Make APN re-connect delay configuable

Add configurability on hard coded timer.

Change-Id: Ic9a6ee43d9da3bd45f862aa3a21f05d836b402e3
This commit is contained in:
Kazuhiro Ondo
2011-06-14 00:47:24 -05:00
committed by Wink Saville
parent 49572479a9
commit c65d52b148

View File

@@ -145,8 +145,10 @@ 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;
/** Delay between APN attempts.
Note the property override mechanism is there just for testing purpose only. */
protected static final int APN_DELAY_MILLIS =
SystemProperties.getInt("persist.radio.apn_delay", 5000);
// responds to the setInternalDataEnabled call - used internally to turn off data
// for example during emergency calls