From 22bbb1672ef0a15f54cde80b5e770da212914e46 Mon Sep 17 00:00:00 2001 From: Shian-Yow Wu Date: Wed, 9 Jan 2013 22:57:55 +0800 Subject: [PATCH] Bug 828089 - [B2G][Settings][Cellular & Data][Network Operator] Unable to disconnect from existing network operator and connect to a new one. r=vicamo --- dom/system/gonk/ril_worker.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom/system/gonk/ril_worker.js b/dom/system/gonk/ril_worker.js index 5bb4a0cfdd54..b60d0e0645f4 100644 --- a/dom/system/gonk/ril_worker.js +++ b/dom/system/gonk/ril_worker.js @@ -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();