OSDN Git Service

Do not always call setIsConnectedToProvisioningNetwork(false)
authorWink Saville <wink@google.com>
Sat, 21 Sep 2013 16:01:19 +0000 (09:01 -0700)
committerWink Saville <wink@google.com>
Sat, 21 Sep 2013 16:01:19 +0000 (09:01 -0700)
commit1e4f461839ebd3c9d3dc62232c2eac7d8cbdc467
tree975455476ac6226aac9e259bc25bc69b7975e633
parent54d88f7678387a6eb871ec2dccd36af4ff35b1fe
Do not always call setIsConnectedToProvisioningNetwork(false)

Previously I was calling setIsConnectedToProvisioningNetwork(false) always,
but all MDST's receive every broadcast. Thus we could over write an MDST's
mNetworkInfo.mIsConnectedToProvisioningNetwork to false, unless the MDST
that was set to true was last, i.e the code was order dependent.

If the provisioning networks value was false instead of true
when handleMobileProvisioningAction was called we wouldn't invoke
mdst.enableMobileProvisioning because network info would be null.

Thus the provisioning network would never transition to CONNECTED and
a default route wouldn't get setup and the browser couldn't access the
website.

Now setIsConnectedToProvisioningNetwork is only set to false when the
apnType matches and we won't indiscriminately change it and are not
order dependent.

Bug: 10853805
Change-Id: I68a4f9bdf5dc18d90f4cdef7a60811f57be67261
core/java/android/net/MobileDataStateTracker.java