Bug 793450 - RadioInterfaceLayer broken after bug 787420. r=cjones
authorPhilipp von Weitershausen <philipp@weitershausen.de>
Sat, 22 Sep 2012 23:45:15 -0700
changeset 107946 5dc812bc69dc9c18067ac9ed9ceb85884afba0d8
parent 107945 415f11a2bb1ae06e7bf912c48a4e7df43ca52bcf
child 107947 3abe394b6110dd3a12964d6f2ae36389fc2290cd
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerscjones
bugs793450, 787420
milestone18.0a1
Bug 793450 - RadioInterfaceLayer broken after bug 787420. r=cjones
dom/system/gonk/RadioInterfaceLayer.js
--- a/dom/system/gonk/RadioInterfaceLayer.js
+++ b/dom/system/gonk/RadioInterfaceLayer.js
@@ -650,17 +650,17 @@ RadioInterfaceLayer.prototype = {
   },
 
   _preferredNetworkType: null,
   setPreferredNetworkType: function setPreferredNetworkType(value) {
     let networkType = RIL.RIL_PREFERRED_NETWORK_TYPE_TO_GECKO.indexOf(value);
     if (networkType < 0) {
       gSettingsService.createLock().set("ril.radio.preferredNetworkType",
                                         this._preferredNetworkType || RIL.GECKO_PREFERRED_NETWORK_TYPE_DEFAULT,
-                                        false);
+                                        null);
       return;
     }
 
     if (networkType == this._preferredNetworkType) {
       return;
     }
 
     this.worker.postMessage({rilMessageType: "setPreferredNetworkType",
@@ -668,17 +668,17 @@ RadioInterfaceLayer.prototype = {
 
     this._ensureRadioState();
   },
 
   handleSetPreferredNetworkType: function handleSetPreferredNetworkType(message) {
     if ((this._preferredNetworkType != null) && !message.success) {
       gSettingsService.createLock().set("ril.radio.preferredNetworkType",
                                         this._preferredNetworkType,
-                                        false);
+                                        null);
       return;
     }
 
     this._preferredNetworkType = message.networkType;
     debug("_preferredNetworkType is now " +
           RIL.RIL_PREFERRED_NETWORK_TYPE_TO_GECKO[this._preferredNetworkType]);
   },