зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e8a67eefaf
Коммит
2e2a4d1a24
|
@ -121,7 +121,9 @@ SettingsListener.observe('language.current', 'en-US', function(value) {
|
|||
Services.prefs.setCharPref(prefName, value + ', ' + intl);
|
||||
}
|
||||
|
||||
shell.start();
|
||||
if (shell.hasStarted() == false) {
|
||||
shell.start();
|
||||
}
|
||||
});
|
||||
|
||||
// =================== RIL ====================
|
||||
|
|
|
@ -152,9 +152,16 @@ var shell = {
|
|||
|
||||
get manifestURL() {
|
||||
return Services.prefs.getCharPref('browser.manifestURL');
|
||||
},
|
||||
},
|
||||
|
||||
_started: false,
|
||||
hasStarted: function shell_hasStarted() {
|
||||
return this._started;
|
||||
},
|
||||
|
||||
start: function shell_start() {
|
||||
this._started = true;
|
||||
|
||||
// This forces the initialization of the cookie service before we hit the
|
||||
// network.
|
||||
// See bug 810209
|
||||
|
|
Загрузка…
Ссылка в новой задаче