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
Родитель 99a13170fe
Коммит 22bbb1672e
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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();