Bug 942096 - Extend stk system message to support multiple sim. r=hsinyi

This commit is contained in:
Edgar Chen 2013-11-25 18:10:34 +08:00
parent eba81c2c79
commit e33656c076

View File

@ -2334,7 +2334,12 @@ RadioInterface.prototype = {
handleStkProactiveCommand: function handleStkProactiveCommand(message) {
if (DEBUG) this.debug("handleStkProactiveCommand " + JSON.stringify(message));
gSystemMessenger.broadcastMessage("icc-stkcommand", message);
let iccId = this.rilContext.iccInfo && this.rilContext.iccInfo.iccid;
if (iccId) {
gSystemMessenger.broadcastMessage("icc-stkcommand",
{iccId: iccId,
command: message});
}
gMessageManager.sendIccMessage("RIL:StkCommand", this.clientId, message);
},