mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1004529 - Don't fetch display metrics when calling Resource.updateConfiguration. r=nalexander
This commit is contained in:
parent
b29705c2fd
commit
3f9aa66774
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user