Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fb9c773 authored by vandwalle's avatar vandwalle Committed by Android (Google) Code Review
Browse files

Merge "dont show a config in saved network if it is self added and we never...

Merge "dont show a config in saved network if it is self added and we never connected to it Bug:17939405" into lmp-dev
parents e4d510fa 426005a2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);