Bug 1223662 - Part 1: Check mmiServiceCode with correct constant. r=echen
authorBevis Tseng <btseng@mozilla.com>
Wed, 11 Nov 2015 13:10:51 +0800
changeset 308371 7ef208a52042325e4abcc6a764891173fe0909d0
parent 308370 672f6d6e9cc178151e0e7b1152386cbc695aaf56
child 308372 169482e6ed9b82143ce4e64c80d640f22dade76d
push id7465
push usercku@mozilla.com
push dateThu, 12 Nov 2015 09:05:57 +0000
reviewersechen
bugs1223662
milestone45.0a1
Bug 1223662 - Part 1: Check mmiServiceCode with correct constant. r=echen
dom/telephony/gonk/TelephonyService.js
--- a/dom/telephony/gonk/TelephonyService.js
+++ b/dom/telephony/gonk/TelephonyService.js
@@ -1010,17 +1010,17 @@ TelephonyService.prototype = {
    *        A nsITelephonyDialCallback object.
    */
   _dialMMI: function(aClientId, aMmi, aCallback) {
     let mmiServiceCode = aMmi ?
       this._serviceCodeToKeyString(aMmi.serviceCode) : MMI_KS_SC_USSD;
 
     aCallback.notifyDialMMI(mmiServiceCode);
 
-    if (mmiServiceCode !== RIL.MMI_KS_SC_IMEI && !this._isRadioOn(aClientId)) {
+    if (mmiServiceCode !== MMI_KS_SC_IMEI && !this._isRadioOn(aClientId)) {
       aCallback.notifyDialMMIError(DIAL_ERROR_RADIO_NOT_AVAILABLE);
       return;
     }
 
     // We check if the MMI service code is supported and in that case we
     // trigger the appropriate RIL request if possible.
     switch (mmiServiceCode) {
       // Call Forwarding