Bug 873965 - Set preferred network type when radio is on. r=vicamo
authorEdgar Chen <echen@mozilla.com>
Mon, 20 May 2013 16:04:37 +0800
changeset 143908 d502187daa5c02e682c30bd903bfd120da157288
parent 143907 28d35d0faa745242448f67dc0204dc2a295b69b1
child 143918 957f5f047a9461982930b0534fe2755d5c44ca41
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo
bugs873965
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 873965 - Set preferred network type when radio is on. r=vicamo
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -5259,16 +5259,17 @@ RIL[UNSOLICITED_RESPONSE_RADIO_STATE_CHA
         this.getDeviceIdentity();
       } else {
         this.getIMEI();
         this.getIMEISV();
       }
     }
     this.getBasebandVersion();
     this.updateCellBroadcastConfig();
+    this.setPreferredNetworkType();
   }
 
   this.radioState = newState;
   this.sendDOMMessage({
     rilMessageType: "radiostatechange",
     radioState: newState
   });
 
@@ -5459,18 +5460,16 @@ RIL[UNSOLICITED_RIL_CONNECTED] = functio
   let version = Buf.readUint32List()[0];
   RILQUIRKS_V5_LEGACY = (version < 5);
   if (DEBUG) {
     debug("Detected RIL version " + version);
     debug("RILQUIRKS_V5_LEGACY is " + RILQUIRKS_V5_LEGACY);
   }
 
   this.initRILState();
-
-  this.setPreferredNetworkType();
 };
 
 /**
  * This object exposes the functionality to parse and serialize PDU strings
  *
  * A PDU is a string containing a series of hexadecimally encoded octets
  * or nibble-swapped binary-coded decimals (BCDs). It contains not only the
  * message text but information about the sender, the SMS service center,