mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 978785 - SV: Enable customization during first time to insert a SIM card. r=fabrice, r=gene
This commit is contained in:
parent
d79c5efebd
commit
e12f097e34
@ -77,10 +77,17 @@ let iccListener = {
|
||||
let clientId = 0;
|
||||
let iccInfo = iccProvider.getIccInfo(clientId);
|
||||
if (iccInfo && iccInfo.mcc && iccInfo.mnc) {
|
||||
debug("******* iccListener cardIccInfo MCC-MNC: " + iccInfo.mcc +
|
||||
"-" + iccInfo.mnc);
|
||||
let mcc = iccInfo.mcc;
|
||||
let mnc = iccInfo.mnc;
|
||||
debug("******* iccListener cardIccInfo MCC-MNC: " + mcc + "-" + mnc);
|
||||
iccProvider.unregisterIccMsg(clientId, this);
|
||||
OperatorAppsRegistry._installOperatorApps(iccInfo.mcc, iccInfo.mnc);
|
||||
OperatorAppsRegistry._installOperatorApps(mcc, mnc);
|
||||
|
||||
debug("Broadcast message first-run-with-sim");
|
||||
let messenger = Cc["@mozilla.org/system-message-internal;1"]
|
||||
.getService(Ci.nsISystemMessagesInternal);
|
||||
messenger.broadcastMessage("first-run-with-sim", { mcc: mcc,
|
||||
mnc: mnc });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -114,6 +114,9 @@ this.SystemMessagePermissionsTable = {
|
||||
"settings": ["read", "write"]
|
||||
},
|
||||
"wifip2p-pairing-request": { },
|
||||
"first-run-with-sim": {
|
||||
"settings": ["read", "write"]
|
||||
}
|
||||
};
|
||||
|
||||
this.SystemMessagePermissionsChecker = {
|
||||
|
Loading…
Reference in New Issue
Block a user