am ef1bbaa3: am 68af3173: Merge "Fixed a bug where Wi-Fi would should networks out of range." into lmp-dev

* commit 'ef1bbaa3dd4c42f7898577153a2cf68f78f409c7':
  Fixed a bug where Wi-Fi would should networks out of range.
This commit is contained in:
PauloftheWest
2014-07-28 19:42:55 +00:00
committed by Android Git Automerger

View File

@@ -710,7 +710,10 @@ public class WifiSettings extends RestrictedSettingsFragment
}
for (AccessPoint accessPoint : accessPoints) {
getPreferenceScreen().addPreference(accessPoint);
// Ignore access points that are out of range.
if (accessPoint.getLevel() != -1) {
getPreferenceScreen().addPreference(accessPoint);
}
}
break;