diff options
author | vandwalle <vandwalle@google.com> | 2014-10-14 15:38:09 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-14 15:38:09 +0000 |
commit | 52e929a9613e52e199dcf12b95acab31be3c25bd (patch) | |
tree | ffc93ad3aab2d522dd40b0e37a3ed48c86f0f887 /src/com | |
parent | c92828231993aa2c1a447c37a4a6f9740e950a72 (diff) | |
parent | 2fb9c773761b1375c86963ebb8f3bb3bec18e479 (diff) | |
download | packages_apps_Settings-52e929a9613e52e199dcf12b95acab31be3c25bd.tar.gz packages_apps_Settings-52e929a9613e52e199dcf12b95acab31be3c25bd.tar.bz2 packages_apps_Settings-52e929a9613e52e199dcf12b95acab31be3c25bd.zip |
am 2fb9c773: Merge "dont show a config in saved network if it is self added and we never connected to it Bug:17939405" into lmp-dev
* commit '2fb9c773761b1375c86963ebb8f3bb3bec18e479':
dont show a config in saved network if it is self added and we never connected to it Bug:17939405
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java b/src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java index c24767b57..bea720cf4 100644 --- a/src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java +++ b/src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java @@ -128,7 +128,11 @@ public class SavedAccessPointsWifiSettings extends SettingsPreferenceFragment final int configsSize = configs.size(); for (int i = 0; i < configsSize; ++i){ - AccessPoint accessPoint = new AccessPoint(context, configs.get(i)); + WifiConfiguration config = configs.get(i); + if (config.selfAdded && config.numAssociation == 0) { + continue; + } + AccessPoint accessPoint = new AccessPoint(context, config); final List<ScanResult> results = resultsMap.get(accessPoint.ssid); accessPoint.setShowSummary(false); |