Merge "dont show a config in saved network if it is self added and we never connected to it Bug:17939405" into lmp-dev

This commit is contained in:
vandwalle
2014-10-14 06:41:26 +00:00
committed by Android (Google) Code Review

View File

@@ -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);