зеркало из https://github.com/mozilla/gecko-dev.git
Bug 944589 - [Voice Channel][Dialer][Airplane Mode] If you switch to airplane mode when talking, voice channel will not recover. r=vicamo
This commit is contained in:
Родитель
d180b9d224
Коммит
2267b9c6d9
|
@ -4990,8 +4990,8 @@ RIL[REQUEST_DIAL] = function REQUEST_DIAL(length, options) {
|
|||
if (options.rilRequestError) {
|
||||
// The connection is not established yet.
|
||||
options.callIndex = -1;
|
||||
this.getFailCauseCode(options);
|
||||
return;
|
||||
this._sendCallError(options.callIndex,
|
||||
RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]);
|
||||
}
|
||||
};
|
||||
RIL[REQUEST_GET_IMSI] = function REQUEST_GET_IMSI(length, options) {
|
||||
|
@ -5070,15 +5070,8 @@ RIL[REQUEST_LAST_CALL_FAIL_CAUSE] = function REQUEST_LAST_CALL_FAIL_CAUSE(length
|
|||
}
|
||||
|
||||
let failCause = Buf.readInt32();
|
||||
switch (failCause) {
|
||||
case CALL_FAIL_NORMAL:
|
||||
this._handleDisconnectedCall(options);
|
||||
break;
|
||||
default:
|
||||
this._sendCallError(options.callIndex,
|
||||
RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[failCause]);
|
||||
break;
|
||||
}
|
||||
options.failCause = RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[failCause];
|
||||
this._handleDisconnectedCall(options);
|
||||
};
|
||||
RIL[REQUEST_SIGNAL_STRENGTH] = function REQUEST_SIGNAL_STRENGTH(length, options) {
|
||||
this._receivedNetworkInfo(NETWORK_INFO_SIGNAL);
|
||||
|
|
|
@ -496,14 +496,20 @@ TelephonyProvider.prototype = {
|
|||
|
||||
this._updateCallAudioState(aCall, null);
|
||||
|
||||
this._notifyAllListeners("callStateChanged", [aClientId,
|
||||
aCall.callIndex,
|
||||
aCall.state,
|
||||
aCall.number,
|
||||
aCall.isActive,
|
||||
aCall.isOutgoing,
|
||||
aCall.isEmergency,
|
||||
aCall.isConference]);
|
||||
if (!aCall.failCause ||
|
||||
aCall.failCause === RIL.GECKO_CALL_ERROR_NORMAL_CALL_CLEARING) {
|
||||
this._notifyAllListeners("callStateChanged", [aClientId,
|
||||
aCall.callIndex,
|
||||
aCall.state,
|
||||
aCall.number,
|
||||
aCall.isActive,
|
||||
aCall.isOutgoing,
|
||||
aCall.isEmergency,
|
||||
aCall.isConference]);
|
||||
return;
|
||||
}
|
||||
|
||||
this.notifyCallError(aClientId, aCall.callIndex, aCall.failCause);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче