diff options
author | sunil duttu <duttus@codeaurora.org> | 2013-02-06 11:12:03 +0530 |
---|---|---|
committer | sunil duttu <duttus@codeaurora.org> | 2013-02-06 12:04:37 +0530 |
commit | f99d52cf7156991a74f942efb081369a5a14a431 (patch) | |
tree | 3a5bdc9794313a5023e4e89f7ea7c11e5eac2ff7 /src/com/android/settings/wifi | |
parent | 505232be07e388c602529e14254df013637b16f2 (diff) | |
download | packages_apps_Settings-f99d52cf7156991a74f942efb081369a5a14a431.tar.gz packages_apps_Settings-f99d52cf7156991a74f942efb081369a5a14a431.tar.bz2 packages_apps_Settings-f99d52cf7156991a74f942efb081369a5a14a431.zip |
wifiSettings: Updating the networkinfo on supplicant event
In framework we update the networkId on supplicant state change
these changes in the network info should be reflected in settings.
there by updating the networkinfo.
The problem we are facing without this fix is when we have single
saved AP profile Switching off the AP when we are in connecting
tate resulting in a behavior Where UI keep showing connecting
to that AP instead of showing it as out of range.
Change-Id: I04073b9a4068f4b75216ebfd431adc126583f15c
Diffstat (limited to 'src/com/android/settings/wifi')
-rw-r--r-- | src/com/android/settings/wifi/WifiSettings.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index aedb79e53..dea1618fa 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -835,7 +835,12 @@ public class WifiSettings extends SettingsPreferenceFragment WifiManager.EXTRA_NEW_STATE); if (!mConnected.get() && SupplicantState.isHandshakeState(state)) { updateConnectionState(WifiInfo.getDetailedStateOf(state)); - } + } else { + // During a connect, we may have the supplicant + // state change affect the detailed network state. + // Make sure a lost connection is updated as well. + updateConnectionState(null); + } } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) { NetworkInfo info = (NetworkInfo) intent.getParcelableExtra( WifiManager.EXTRA_NETWORK_INFO); |