am 1e3505c6: Merge change 22001 into eclair

Merge commit '1e3505c6f1f45a1c9d8569f5ffcc4d27cb822c71'

* commit '1e3505c6f1f45a1c9d8569f5ffcc4d27cb822c71':
  Fix Wifi+Cell on boot after wifi in use.
This commit is contained in:
Robert Greenwalt
2009-08-19 20:45:47 -07:00
committed by Android Git Automerger

View File

@@ -316,6 +316,12 @@ public class MobileDataStateTracker extends NetworkStateTracker {
// no need to do anything - we're already due some status update intents
break;
case Phone.APN_REQUEST_FAILED:
if (mPhoneService == null && mApnType == Phone.APN_TYPE_DEFAULT) {
// on startup we may try to talk to the phone before it's ready
// just leave mEnabled as it is for the default apn.
return false;
}
// else fall through
case Phone.APN_TYPE_NOT_AVAILABLE:
mEnabled = false;
break;