diff options
author | Sravanthi Palakonda <srapal@codeaurora.org> | 2015-10-26 17:42:22 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-29 03:45:23 -0700 |
commit | ae89203999ea31baf6ee2cb5410529b085290378 (patch) | |
tree | 774908bce41e48f877ef5484ebfe62a40aa9276d /packages/SettingsLib | |
parent | 64a04eb003d2af5bbc84db3062ee4d6a4194c513 (diff) | |
download | frameworks_base-ae89203999ea31baf6ee2cb5410529b085290378.zip frameworks_base-ae89203999ea31baf6ee2cb5410529b085290378.tar.gz frameworks_base-ae89203999ea31baf6ee2cb5410529b085290378.tar.bz2 |
Wifi: Create new object for accesspoints while updating in UI
Already connected AP is cached in Scanresultcache, which is causing
the AP to populate in UI even if the AP is not available in range or
if AP is switched off.
This commit ensures to remove the unavailable APs from UI.
CRs-Fixed: 930164
Change-Id: I4428d44851ca46e3328a213b2349e02e1fa31bc3
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java b/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java index c28288e..4f51137 100644 --- a/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java +++ b/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java @@ -319,7 +319,7 @@ public class WifiTracker { if (config.selfAdded && config.numAssociation == 0) { continue; } - AccessPoint accessPoint = getCachedOrCreate(config, cachedAccessPoints); + AccessPoint accessPoint = new AccessPoint(mContext, config); if (mLastInfo != null && mLastNetworkInfo != null) { if (config.isPasspoint() == false) { accessPoint.update(connectionConfig, mLastInfo, mLastNetworkInfo); |