Bug 776480 - B2G RIL: missing handler for ipc message 'RIL:GetRadioState. r=philikon

This commit is contained in:
Yoshi Huang 2012-07-24 15:15:25 +08:00
Родитель 656e24cfa0
Коммит 3ecaaca13d
1 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -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 = {