Bug 1084023 - Update sim info when radio tech is changed. r=hsinyi

This commit is contained in:
Edgar Chen 2013-05-28 14:10:52 +08:00
Родитель d68f17b9e1
Коммит 5398f0e36e
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -6924,7 +6924,14 @@ RilObject.prototype[UNSOLICITED_RIL_CONNECTED] = function UNSOLICITED_RIL_CONNEC
// Reset radio in the case that b2g restart (or crash).
this.setRadioEnabled({enabled: false});
};
RilObject.prototype[UNSOLICITED_VOICE_RADIO_TECH_CHANGED] = null;
RilObject.prototype[UNSOLICITED_VOICE_RADIO_TECH_CHANGED] = function UNSOLICITED_VOICE_RADIO_TECH_CHANGED(length) {
// This unsolicited response will be sent when the technology of a multi-tech
// modem is changed, ex. switch between gsm and cdma.
// TODO: We may need to do more on updating data when switching between gsm
// and cdma mode, e.g. IMEI, ESN, iccInfo, iccType ... etc.
// See Bug 866038.
this._processRadioTech(this.context.Buf.readInt32List()[0]);
};
/**
* This object exposes the functionality to parse and serialize PDU strings