Merge "Fix calculation of Access Point Level."

This commit is contained in:
TreeHugger Robot
2017-03-15 01:45:27 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -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();