mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 917480 - Pre: commenting. r=nalexander
This commit is contained in:
parent
1b2e339f62
commit
d2f89f7275
@ -218,6 +218,9 @@ public class BrowserLocaleManager implements LocaleManager {
|
||||
public void updateConfiguration(Context context, Locale locale) {
|
||||
Resources res = context.getResources();
|
||||
Configuration config = res.getConfiguration();
|
||||
|
||||
// We should use setLocale, but it's unexpectedly missing
|
||||
// on real devices.
|
||||
config.locale = locale;
|
||||
res.updateConfiguration(config, res.getDisplayMetrics());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user