mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Backed out changeset 03919674446d (bug 981519) for causing regression bug 1026081
This commit is contained in:
parent
e926f8230a
commit
50b2eca4c8
@ -2075,7 +2075,7 @@ RadioInterface.prototype = {
|
||||
gTelephonyService.notifyConferenceCallStateChanged(message.state);
|
||||
break;
|
||||
case "cdmaCallWaiting":
|
||||
gTelephonyService.notifyCdmaCallWaiting(this.clientId, message.waitingCall);
|
||||
gTelephonyService.notifyCdmaCallWaiting(this.clientId, message.number);
|
||||
break;
|
||||
case "suppSvcNotification":
|
||||
gTelephonyService.notifySupplementaryService(this.clientId,
|
||||
|
@ -5529,7 +5529,7 @@ RilObject.prototype[REQUEST_GET_CURRENT_CALLS] = function REQUEST_GET_CURRENT_CA
|
||||
if (RILQUIRKS_CALLSTATE_EXTRA_UINT32) {
|
||||
Buf.readInt32();
|
||||
}
|
||||
call.number = Buf.readString();
|
||||
call.number = Buf.readString(); //TODO munge with TOA
|
||||
call.numberPresentation = Buf.readInt32(); // CALL_PRESENTATION_*
|
||||
call.name = Buf.readString();
|
||||
call.namePresentation = Buf.readInt32();
|
||||
@ -6860,7 +6860,7 @@ RilObject.prototype[UNSOLICITED_CDMA_CALL_WAITING] = function UNSOLICITED_CDMA_C
|
||||
call.alertPitch = Buf.readInt32();
|
||||
call.signal = Buf.readInt32();
|
||||
this.sendChromeMessage({rilMessageType: "cdmaCallWaiting",
|
||||
waitingCall: call});
|
||||
number: call.number});
|
||||
};
|
||||
RilObject.prototype[UNSOLICITED_CDMA_OTA_PROVISION_STATUS] = function UNSOLICITED_CDMA_OTA_PROVISION_STATUS() {
|
||||
let status = this.context.Buf.readInt32List()[0];
|
||||
|
@ -361,9 +361,7 @@ TelephonyService.prototype = {
|
||||
for (let i = 0, indexes = Object.keys(calls); i < indexes.length; ++i) {
|
||||
let call = calls[indexes[i]];
|
||||
aListener.enumerateCallState(call.clientId, call.callIndex,
|
||||
call.state, call.number,
|
||||
call.numberPresentation, call.name,
|
||||
call.namePresentation, call.isOutgoing,
|
||||
call.state, call.number, call.isOutgoing,
|
||||
call.isEmergency, call.isConference,
|
||||
call.isSwitchable, call.isMergeable);
|
||||
}
|
||||
@ -731,9 +729,6 @@ TelephonyService.prototype = {
|
||||
aCall.callIndex,
|
||||
aCall.state,
|
||||
aCall.number,
|
||||
aCall.numberPresentation,
|
||||
aCall.name,
|
||||
aCall.namePresentation,
|
||||
aCall.isOutgoing,
|
||||
aCall.isEmergency,
|
||||
aCall.isConference,
|
||||
@ -798,13 +793,6 @@ TelephonyService.prototype = {
|
||||
call.isMergeable = aCall.isMergeable != null ?
|
||||
aCall.isMergeable : true;
|
||||
|
||||
call.numberPresentation = aCall.numberPresentation != null ?
|
||||
aCall.numberPresentation : nsITelephonyProvider.CALL_PRESENTATION_ALLOWED;
|
||||
call.name = aCall.name != null ?
|
||||
aCall.name : "";
|
||||
call.namePresentation = aCall.namePresentation != null ?
|
||||
aCall.namePresentation : nsITelephonyProvider.CALL_PRESENTATION_ALLOWED;
|
||||
|
||||
this._currentCalls[aClientId][aCall.callIndex] = call;
|
||||
}
|
||||
|
||||
@ -812,9 +800,6 @@ TelephonyService.prototype = {
|
||||
call.callIndex,
|
||||
call.state,
|
||||
call.number,
|
||||
call.numberPresentation,
|
||||
call.name,
|
||||
call.namePresentation,
|
||||
call.isOutgoing,
|
||||
call.isEmergency,
|
||||
call.isConference,
|
||||
@ -822,7 +807,7 @@ TelephonyService.prototype = {
|
||||
call.isMergeable]);
|
||||
},
|
||||
|
||||
notifyCdmaCallWaiting: function(aClientId, aCall) {
|
||||
notifyCdmaCallWaiting: function(aClientId, aNumber) {
|
||||
// We need to acquire a CPU wake lock to avoid the system falling into
|
||||
// the sleep mode when the RIL handles the incoming call.
|
||||
this._acquireCallRingWakeLock();
|
||||
@ -833,11 +818,7 @@ TelephonyService.prototype = {
|
||||
// call comes after a 3way call.
|
||||
this.notifyCallDisconnected(aClientId, call);
|
||||
}
|
||||
this._notifyAllListeners("notifyCdmaCallWaiting", [aClientId,
|
||||
aCall.number,
|
||||
aCall.numberPresentation,
|
||||
aCall.name,
|
||||
aCall.namePresentation]);
|
||||
this._notifyAllListeners("notifyCdmaCallWaiting", [aClientId, aNumber]);
|
||||
},
|
||||
|
||||
notifySupplementaryService: function(aClientId, aCallIndex, aNotification) {
|
||||
|
Loading…
Reference in New Issue
Block a user