Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e61697d authored by Sundeep Ghuman's avatar Sundeep Ghuman Committed by android-build-merger
Browse files

Merge "Don't show unset score values for AccessPoints." into oc-dev

am: 32c65fcc

Change-Id: I40586bcf4ab1fc32a15c145798460008ded764d1
parents c3c31128 32c65fcc
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
        if (security != SECURITY_NONE) {
            builder.append(',').append(securityToString(security, pskType));
        }
        builder.append(",mRssi=").append(mRssi);
        builder.append(",level=").append(getLevel());
        if (mRankingScore != Integer.MIN_VALUE) {
            builder.append(",rankingScore=").append(mRankingScore);
@@ -745,8 +746,12 @@ public class AccessPoint implements Comparable<AccessPoint> {
            visibility.append(" rssi=").append(mInfo.getRssi());
            visibility.append(" ");
            visibility.append(" score=").append(mInfo.score);
            if (mRankingScore != Integer.MIN_VALUE) {
              visibility.append(" rankingScore=").append(getRankingScore());
            }
            if (mBadge != NetworkBadging.BADGING_NONE) {
              visibility.append(" badge=").append(getBadge());
            }
            visibility.append(String.format(" tx=%.1f,", mInfo.txSuccessRate));
            visibility.append(String.format("%.1f,", mInfo.txRetriesRate));
            visibility.append(String.format("%.1f ", mInfo.txBadRate));