Merge "Fix display of "null" string shown in Wifi Settings for AP." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3a017f2c32
@@ -755,7 +755,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
|
|||||||
int index = state.ordinal();
|
int index = state.ordinal();
|
||||||
|
|
||||||
if (index >= formats.length || formats[index].length() == 0) {
|
if (index >= formats.length || formats[index].length() == 0) {
|
||||||
return null;
|
return "";
|
||||||
}
|
}
|
||||||
return String.format(formats[index], ssid);
|
return String.format(formats[index], ssid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user