am 52e929a9: 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 '52e929a9613e52e199dcf12b95acab31be3c25bd':
  dont show a config in saved network if it is self added and we never connected to it Bug:17939405
This commit is contained in:
vandwalle
2014-10-14 19:55:58 +00:00
committed by Android Git Automerger

View File

@@ -128,7 +128,11 @@ public class SavedAccessPointsWifiSettings extends SettingsPreferenceFragment
final int configsSize = configs.size(); final int configsSize = configs.size();
for (int i = 0; i < configsSize; ++i){ 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); final List<ScanResult> results = resultsMap.get(accessPoint.ssid);
accessPoint.setShowSummary(false); accessPoint.setShowSummary(false);