B2G/gecko/dom/system/gonk/RadioInterfaceLayer.js
/**
    * Fix the roaming. RIL can report roaming in some case it is not
    * really the case. See bug 787967
    *
    * @param registration  The voiceMessage or dataMessage from which the
    *                      roaming state will be changed (maybe, if needed).
    */
Fix the roaming. RIL can report roaming in some case it is not
really the case.

@param registration  The voiceMessage or dataMessage from which the
roaming state will be changed (maybe, if needed).
Fix the roaming . RIL can report roaming in some case it is not really the case . @param registration The voiceMessage or dataMessage from which the roaming state will be changed ( maybe if needed ) .
function checkRoamingBetweenOperators(registration) {
    let icc = this.rilContext.icc;
    if (!icc || !registration.connected) {
      return;
    }
    let spn = icc.spn;
    let operator = registration.network;
    let longName = operator.longName;
    let shortName = operator.shortName;
    let equalsLongName = longName && (spn == longName);
    let equalsShortName = shortName && (spn == shortName);
    let equalsMcc = icc.mcc == operator.mcc;
    registration.roaming = registration.roaming &&
                           !(equalsMcc && (equalsLongName || equalsShortName));
  }
function checkRoamingBetweenOperators ( registration ) { let icc = this . rilContext . icc ; if ( ! icc || ! registration . connected ) { return ; } let spn = icc . spn ; let operator = registration . network ; let longName = operator . longName ; let shortName = operator . shortName ; let equalsLongName = longName && ( spn == longName ) ; let equalsShortName = shortName && ( spn == shortName ) ; let equalsMcc = icc . mcc == operator . mcc ; registration . roaming = registration . roaming && ! ( equalsMcc && ( equalsLongName || equalsShortName ) ) ; }
Fix the roaming.
Fix the roaming .