Bug 1004529 - Don't fetch display metrics when calling Resource.updateConfiguration. r=nalexander

This commit is contained in:
Richard Newman 2014-05-20 12:25:21 -07:00
parent b29705c2fd
commit 3f9aa66774
2 changed files with 3 additions and 3 deletions

View File

@ -177,7 +177,7 @@ public class BrowserLocaleManager implements LocaleManager {
// This seems to be a no-op, but every piece of documentation under the
// sun suggests that it's necessary, and it certainly makes sense.
res.updateConfiguration(config, res.getDisplayMetrics());
res.updateConfiguration(config, null);
}
@Override
@ -254,7 +254,7 @@ public class BrowserLocaleManager implements LocaleManager {
// We should use setLocale, but it's unexpectedly missing
// on real devices.
config.locale = locale;
res.updateConfiguration(config, res.getDisplayMetrics());
res.updateConfiguration(config, null);
}
private SharedPreferences getSharedPreferences(Context context) {

View File

@ -118,7 +118,7 @@ public class GeckoThread extends Thread implements GeckoEventListener {
Configuration config = res.getConfiguration();
config.locale = locale;
res.updateConfiguration(config, res.getDisplayMetrics());
res.updateConfiguration(config, null);
return resourcePath;
}