Bug 811162 - After switching the language in the settings app, the entire gaia window is half as tall. r=kaze

This commit is contained in:
Vivien Nicolas 2012-11-27 11:28:56 -08:00
Родитель e8a67eefaf
Коммит 2e2a4d1a24
2 изменённых файлов: 11 добавлений и 2 удалений

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

@ -121,7 +121,9 @@ SettingsListener.observe('language.current', 'en-US', function(value) {
Services.prefs.setCharPref(prefName, value + ', ' + intl); Services.prefs.setCharPref(prefName, value + ', ' + intl);
} }
shell.start(); if (shell.hasStarted() == false) {
shell.start();
}
}); });
// =================== RIL ==================== // =================== RIL ====================

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

@ -152,9 +152,16 @@ var shell = {
get manifestURL() { get manifestURL() {
return Services.prefs.getCharPref('browser.manifestURL'); return Services.prefs.getCharPref('browser.manifestURL');
}, },
_started: false,
hasStarted: function shell_hasStarted() {
return this._started;
},
start: function shell_start() { start: function shell_start() {
this._started = true;
// This forces the initialization of the cookie service before we hit the // This forces the initialization of the cookie service before we hit the
// network. // network.
// See bug 810209 // See bug 810209