зеркало из https://github.com/mozilla/gecko-dev.git
Bug 881142 - Part 4: Remove call state busy (RIL). r=hsinyi
This commit is contained in:
Родитель
a5518c1c58
Коммит
44e81e91c7
|
@ -194,8 +194,6 @@ function convertRILCallState(state) {
|
|||
case RIL.CALL_STATE_INCOMING:
|
||||
case RIL.CALL_STATE_WAITING:
|
||||
return nsITelephonyProvider.CALL_STATE_INCOMING;
|
||||
case RIL.CALL_STATE_BUSY:
|
||||
return nsITelephonyProvider.CALL_STATE_BUSY;
|
||||
default:
|
||||
throw new Error("Unknown rilCallState: " + state);
|
||||
}
|
||||
|
|
|
@ -442,7 +442,6 @@ this.CALL_STATE_DIALING = 2;
|
|||
this.CALL_STATE_ALERTING = 3;
|
||||
this.CALL_STATE_INCOMING = 4;
|
||||
this.CALL_STATE_WAITING = 5;
|
||||
this.CALL_STATE_BUSY = 6;
|
||||
|
||||
this.TOA_INTERNATIONAL = 0x91;
|
||||
this.TOA_UNKNOWN = 0x81;
|
||||
|
|
|
@ -4690,11 +4690,6 @@ RIL[REQUEST_LAST_CALL_FAIL_CAUSE] = function REQUEST_LAST_CALL_FAIL_CAUSE(length
|
|||
case CALL_FAIL_NORMAL:
|
||||
this._handleDisconnectedCall(options);
|
||||
break;
|
||||
case CALL_FAIL_BUSY:
|
||||
options.state = CALL_STATE_BUSY;
|
||||
this._handleChangedCallState(options);
|
||||
this._handleDisconnectedCall(options);
|
||||
break;
|
||||
default:
|
||||
options.rilMessageType = "callError";
|
||||
options.errorMsg = RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[failCause];
|
||||
|
|
Загрузка…
Ссылка в новой задаче