Merge "Fix ScoredNetwork: unparcel bundle in toString."

This commit is contained in:
TreeHugger Robot
2017-01-13 20:06:28 +00:00
committed by Android (Google) Code Review

View File

@@ -219,7 +219,8 @@ public class ScoredNetwork implements Parcelable {
"networkKey=" + networkKey +
", rssiCurve=" + rssiCurve +
", meteredHint=" + meteredHint);
if (attributes != null) {
// calling isEmpty will unparcel the bundle so its contents can be converted to a string
if (attributes != null && !attributes.isEmpty()) {
out.append(", attributes=" + attributes);
}
out.append('}');