mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 775814 - B2G 3G: ril.data.* preferences have string value false with fresh profile. r=marshall_law
This commit is contained in:
parent
5a16dcbbcc
commit
00ad48d467
@ -74,14 +74,16 @@ SettingsListener.observe('language.current', 'en-US', function(value) {
|
||||
let strPrefs = ['ril.data.apn', 'ril.data.user', 'ril.data.passwd',
|
||||
'ril.data.mmsc', 'ril.data.mmsproxy'];
|
||||
strPrefs.forEach(function(key) {
|
||||
SettingsListener.observe(key, false, function(value) {
|
||||
SettingsListener.observe(key, "", function(value) {
|
||||
Services.prefs.setCharPref(key, value);
|
||||
});
|
||||
});
|
||||
|
||||
['ril.data.mmsport'].forEach(function(key) {
|
||||
SettingsListener.observe(key, false, function(value) {
|
||||
Services.prefs.setIntPref(key, value);
|
||||
SettingsListener.observe(key, null, function(value) {
|
||||
if (value != null) {
|
||||
Services.prefs.setIntPref(key, value);
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user