Disabling setting locale code. See bug 635342. This is probably not needed anymore. It costs about 145 ms at startup

This commit is contained in:
Doug Turner 2011-10-13 15:55:20 -07:00
parent 1c640d32e3
commit 39f8c1540b

View File

@ -475,10 +475,14 @@ abstract public class GeckoApp
Log.w(LOGTAG, "zerdatime " + new Date().getTime() + " - pre checkLaunchState");
/*
XXXX see bug 635342
We want to disable this code if possible. It is about 145ms in runtime
SharedPreferences settings = getPreferences(Activity.MODE_PRIVATE);
String localeCode = settings.getString(getPackageName() + ".locale", "");
if (localeCode != null && localeCode.length() > 0)
GeckoAppShell.setSelectedLocale(localeCode);
*/
if (!checkLaunchState(LaunchState.Launched)) {
return;