mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 787175 - B2G RIL: Use system messages to notify proactive commands. r=philikon
This commit is contained in:
parent
bfd7e70f33
commit
9fde926bdf
@ -93,6 +93,11 @@ XPCOMUtils.defineLazyGetter(this, "WAP", function () {
|
||||
return WAP;
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(this, "gSystemMessenger", function() {
|
||||
return Cc["@mozilla.org/system-message-internal;1"]
|
||||
.getService(Ci.nsISystemMessagesInternal);
|
||||
});
|
||||
|
||||
function convertRILCallState(state) {
|
||||
switch (state) {
|
||||
case RIL.CALL_STATE_ACTIVE:
|
||||
@ -1033,6 +1038,7 @@ RadioInterfaceLayer.prototype = {
|
||||
|
||||
handleStkProactiveCommand: function handleStkProactiveCommand(message) {
|
||||
debug("handleStkProactiveCommand " + JSON.stringify(message));
|
||||
gSystemMessenger.broadcastMessage("icc-stkcommand", message);
|
||||
ppmm.broadcastAsyncMessage("RIL:StkCommand", message);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user