summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorvandwalle <vandwalle@google.com>2014-10-14 06:41:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-14 06:41:27 +0000
commit2fb9c773761b1375c86963ebb8f3bb3bec18e479 (patch)
tree4eca0fe4e80bcf4b181aa7342ffe9560cdb3d371 /src/com
parente4d510fac1c149784414004803b9d2e2b7b0f7af (diff)
parent426005a29906e3ca29ecf0c3e0943e820d8d2e16 (diff)
downloadpackages_apps_Settings-2fb9c773761b1375c86963ebb8f3bb3bec18e479.tar.gz
packages_apps_Settings-2fb9c773761b1375c86963ebb8f3bb3bec18e479.tar.bz2
packages_apps_Settings-2fb9c773761b1375c86963ebb8f3bb3bec18e479.zip
Merge "dont show a config in saved network if it is self added and we never connected to it Bug:17939405" into lmp-dev
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java6
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);