Fix display of "null" string shown in Wifi Settings for AP.

Bug: 21476825
Change-Id: I643dcaa3112ff896e7b0abd998f2ad5e13187706
This commit is contained in:
Sanket Padawe
2015-05-28 10:41:14 -07:00
parent 36e3997451
commit 3e9e5fa66e

View File

@@ -755,7 +755,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
int index = state.ordinal();
if (index >= formats.length || formats[index].length() == 0) {
return null;
return "";
}
return String.format(formats[index], ssid);
}