mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1030042 - [B2G] use notifyDialSuccess(callIndex) for Cdma features. r=aknow
This commit is contained in:
parent
d3f8071199
commit
e48197b67d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user