зеркало из https://github.com/mozilla/gecko-dev.git
Bug 776480 - B2G RIL: missing handler for ipc message 'RIL:GetRadioState. r=philikon
This commit is contained in:
Родитель
656e24cfa0
Коммит
3ecaaca13d
|
@ -140,17 +140,17 @@ function RILContentHelper() {
|
|||
this.initMessageListener(RIL_IPC_MSG_NAMES);
|
||||
Services.obs.addObserver(this, "xpcom-shutdown", false);
|
||||
|
||||
// Request initial state.
|
||||
let radioState = cpmm.QueryInterface(Ci.nsISyncMessageSender)
|
||||
.sendSyncMessage("RIL:GetRadioState")[0];
|
||||
// Request initial context.
|
||||
let rilContext = cpmm.QueryInterface(Ci.nsISyncMessageSender)
|
||||
.sendSyncMessage("RIL:GetRilContext")[0];
|
||||
|
||||
if (!radioState) {
|
||||
debug("Received null radioState from chrome process.");
|
||||
if (!rilContext) {
|
||||
debug("Received null rilContext from chrome process.");
|
||||
return;
|
||||
}
|
||||
this.cardState = radioState.cardState;
|
||||
this.updateConnectionInfo(radioState.voice, this.voiceConnectionInfo);
|
||||
this.updateConnectionInfo(radioState.data, this.dataConnectionInfo);
|
||||
this.cardState = rilContext.cardState;
|
||||
this.updateConnectionInfo(rilContext.voice, this.voiceConnectionInfo);
|
||||
this.updateConnectionInfo(rilContext.data, this.dataConnectionInfo);
|
||||
}
|
||||
|
||||
RILContentHelper.prototype = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче