Fix calculation of Access Point Level.
Bug: b/35854026 Test: make RunSettingsRoboTests Change-Id: I5287e8c7b46a463cfa25659c756f6ca9175cb68c
This commit is contained in:
@@ -642,7 +642,7 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
for (; index < numAccessPointsToShow; index++) {
|
||||
AccessPoint accessPoint = accessPoints.get(index);
|
||||
// Ignore access points that are out of range.
|
||||
if (accessPoint.getLevel() != -1) {
|
||||
if (accessPoint.isReachable()) {
|
||||
String key = accessPoint.getBssid();
|
||||
if (TextUtils.isEmpty(key)) {
|
||||
key = accessPoint.getSsidStr();
|
||||
|
Reference in New Issue
Block a user