Bug 994461 - Part 4: MMS changes for IccInfo WebIDL. r=bevistzeng

This commit is contained in:
Edgar Chen 2014-09-17 19:09:28 +08:00
parent 352b86961b
commit c4816f2f8b

View File

@ -339,10 +339,10 @@ MmsConnection.prototype = {
* Get phone number from iccInfo. * Get phone number from iccInfo.
* *
* If the icc card is gsm card, the phone number is in msisdn. * If the icc card is gsm card, the phone number is in msisdn.
* @see nsIDOMMozGsmIccInfo * @see nsIGsmIccInfo
* *
* Otherwise, the phone number is in mdn. * Otherwise, the phone number is in mdn.
* @see nsIDOMMozCdmaIccInfo * @see nsICdmaIccInfo
*/ */
getPhoneNumber: function() { getPhoneNumber: function() {
let number; let number;
@ -351,10 +351,10 @@ MmsConnection.prototype = {
let iccInfo = null; let iccInfo = null;
let baseIccInfo = this.radioInterface.rilContext.iccInfo; let baseIccInfo = this.radioInterface.rilContext.iccInfo;
if (baseIccInfo.iccType === 'ruim' || baseIccInfo.iccType === 'csim') { if (baseIccInfo.iccType === 'ruim' || baseIccInfo.iccType === 'csim') {
iccInfo = baseIccInfo.QueryInterface(Ci.nsIDOMMozCdmaIccInfo); iccInfo = baseIccInfo.QueryInterface(Ci.nsICdmaIccInfo);
number = iccInfo.mdn; number = iccInfo.mdn;
} else { } else {
iccInfo = baseIccInfo.QueryInterface(Ci.nsIDOMMozGsmIccInfo); iccInfo = baseIccInfo.QueryInterface(Ci.nsIGsmIccInfo);
number = iccInfo.msisdn; number = iccInfo.msisdn;
} }
} catch (e) { } catch (e) {