Bug 1008557 - setUiccSubscription when the RadioState is ready. r=htsai

This commit is contained in:
Bevis Tseng 2014-05-27 16:35:14 +08:00
parent 317e98ac11
commit 0b2255edde

View File

@ -3359,7 +3359,14 @@ RilObject.prototype = {
iccStatus.gsmUmtsSubscriptionAppIndex;
if (RILQUIRKS_SUBSCRIPTION_CONTROL && index === -1) {
// Should enable uicc scription.
// Should enable uicc scription if index is not valid.
if (this.radioState !== GECKO_RADIOSTATE_READY) {
// Note: setUiccSubscription works abnormally when RADIO is OFF,
// which causes SMS function broken in Flame.
// See bug 1008557 for detailed info.
return;
}
for (let i = 0; i < iccStatus.apps.length; i++) {
this.setUiccSubscription({appIndex: i, enabled: true});
}