Fixed a bug where Wi-Fi would should networks out of range.
Bug: 16569017 Change-Id: Ie2d094aed2fcb1b2471ae1105b6782105e6be5ce
This commit is contained in:
@@ -710,8 +710,11 @@ public class WifiSettings extends RestrictedSettingsFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (AccessPoint accessPoint : accessPoints) {
|
for (AccessPoint accessPoint : accessPoints) {
|
||||||
|
// Ignore access points that are out of range.
|
||||||
|
if (accessPoint.getLevel() != -1) {
|
||||||
getPreferenceScreen().addPreference(accessPoint);
|
getPreferenceScreen().addPreference(accessPoint);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WifiManager.WIFI_STATE_ENABLING:
|
case WifiManager.WIFI_STATE_ENABLING:
|
||||||
|
Reference in New Issue
Block a user