mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 795235 - B2G RIL: Use system message to notify a 'dialling' call. r=vicamo
This commit is contained in:
parent
db245b4835
commit
3924a76801
@ -526,6 +526,14 @@ RadioInterfaceLayer.prototype = {
|
||||
case "setPreferredNetworkType":
|
||||
this.handleSetPreferredNetworkType(message);
|
||||
break;
|
||||
case "stkcallsetup":
|
||||
// A call has been placed by the STK app. We shall launch the dialer
|
||||
// app by sending a system message, in order to further control the
|
||||
// call, e.g. hang it up.
|
||||
debug("STK app has placed a call no. " + message.command.options.address);
|
||||
gSystemMessenger.broadcastMessage("icc-dialing", {state: "dialing",
|
||||
number: message.command.options.address});
|
||||
break;
|
||||
default:
|
||||
throw new Error("Don't know about this message type: " +
|
||||
message.rilMessageType);
|
||||
|
@ -4443,7 +4443,12 @@ RIL[REQUEST_STK_GET_PROFILE] = null;
|
||||
RIL[REQUEST_STK_SET_PROFILE] = null;
|
||||
RIL[REQUEST_STK_SEND_ENVELOPE_COMMAND] = null;
|
||||
RIL[REQUEST_STK_SEND_TERMINAL_RESPONSE] = null;
|
||||
RIL[REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM] = null;
|
||||
RIL[REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM] = function REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM(length, options) {
|
||||
if (!options.rilRequestError && options.hasConfirmed) {
|
||||
options.rilMessageType = "stkcallsetup";
|
||||
this.sendDOMMessage(options);
|
||||
}
|
||||
};
|
||||
RIL[REQUEST_EXPLICIT_CALL_TRANSFER] = null;
|
||||
RIL[REQUEST_SET_PREFERRED_NETWORK_TYPE] = function REQUEST_SET_PREFERRED_NETWORK_TYPE(length, options) {
|
||||
if (options.networkType == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user