Bug 828089 - [B2G][Settings][Cellular & Data][Network Operator] Unable to disconnect from existing network operator and connect to a new one. r=vicamo

This commit is contained in:
Shian-Yow Wu 2013-01-09 22:57:55 +08:00
parent 647ada58de
commit c9c7c649cc

View File

@ -1470,7 +1470,11 @@ let RIL = {
debug("Setting manual network selection: " + options.mcc + options.mnc);
}
let numeric = String(options.mcc) + options.mnc;
// TODO: Bug 828307 - B2G RIL: Change to store MNC/MCC values from integer to string
let mnc = options.mnc.toString();
if (mnc.length == 1)
mnc = "0" + mnc;
let numeric = options.mcc.toString() + mnc;
Buf.newParcel(REQUEST_SET_NETWORK_SELECTION_MANUAL, options);
Buf.writeString(numeric);
Buf.sendParcel();