Bug 828307 - Part 6: Save lastKnownMcc as string type. r=vyang

This commit is contained in:
Edgar Chen 2013-03-04 10:38:17 +08:00
parent 92f7d7d11c
commit 95892f1925
2 changed files with 3 additions and 3 deletions

View File

@ -396,7 +396,7 @@ pref("dom.mozAlarms.enabled", true);
// NetworkStats
#ifdef MOZ_B2G_RIL
pref("dom.mozNetworkStats.enabled", true);
pref("ril.lastKnownMcc", 724);
pref("ril.lastKnownMcc", "724");
#endif
// WebSettings

View File

@ -253,7 +253,7 @@ function RadioInterfaceLayer() {
};
try {
this.rilContext.voice.lastKnownMcc = Services.prefs.getIntPref("ril.lastKnownMcc");
this.rilContext.voice.lastKnownMcc = Services.prefs.getCharPref("ril.lastKnownMcc");
} catch (e) {}
this.voicemailInfo = {
@ -1066,7 +1066,7 @@ RadioInterfaceLayer.prototype = {
// !voice.network is in case voice.network is still null.
if (!voice.network || voice.network.mcc != message.mcc) {
try {
Services.prefs.setIntPref("ril.lastKnownMcc", message.mcc);
Services.prefs.setCharPref("ril.lastKnownMcc", message.mcc);
} catch (e) {}
}
}