mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 828307 - Part 6: Save lastKnownMcc as string type. r=vyang
This commit is contained in:
parent
92f7d7d11c
commit
95892f1925
@ -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
|
||||
|
@ -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) {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user