Bug 1030042 - [B2G] use notifyDialSuccess(callIndex) for Cdma features. r=aknow

This commit is contained in:
Hsin-Yi Tsai 2014-06-25 17:47:41 +08:00
parent d3f8071199
commit e48197b67d

View File

@ -439,10 +439,10 @@ TelephonyService.prototype = {
return;
}
function onCdmaDialSuccess() {
function onCdmaDialSuccess(aCallIndex) {
let indexes = Object.keys(this._currentCalls[aClientId]);
if (indexes.length != 1 ) {
aTelephonyCallback.notifyDialSuccess();
if (indexes.length == 0) {
aTelephonyCallback.notifyDialSuccess(aCallIndex);
return;
}
@ -458,7 +458,7 @@ TelephonyService.prototype = {
isMergeable: true,
parentId: indexes[0]
};
aTelephonyCallback.notifyDialSuccess();
aTelephonyCallback.notifyDialSuccess(CDMA_SECOND_CALL_INDEX);
// Manual update call state according to the request response.
this.notifyCallStateChanged(aClientId, childCall);
@ -486,7 +486,7 @@ TelephonyService.prototype = {
}
if (response.isCdma) {
onCdmaDialSuccess.call(this);
onCdmaDialSuccess.call(this, response.callIndex);
} else {
aTelephonyCallback.notifyDialSuccess(response.callIndex);
}