Bug 917480 - Pre: commenting. r=nalexander
authorRichard Newman <rnewman@mozilla.com>
Tue, 13 May 2014 20:50:26 -0700
changeset 183050 8e90d6525389
parent 183049 8c31c7aafe80
child 183051 7cc9eb361a9d
push id6787
push userrnewman@mozilla.com
push date2014-05-14 03:57 +0000
treeherderfx-team@2d5ab443d3c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs917480
milestone32.0a1
Bug 917480 - Pre: commenting. r=nalexander
mobile/android/base/BrowserLocaleManager.java
--- a/mobile/android/base/BrowserLocaleManager.java
+++ b/mobile/android/base/BrowserLocaleManager.java
@@ -213,16 +213,19 @@ public class BrowserLocaleManager implem
      * This is public to allow for an activity to force the
      * current locale to be applied if necessary (e.g., when
      * a new activity launches).
      */
     @Override
     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());
     }
 
     private SharedPreferences getSharedPreferences(Context context) {
         return GeckoSharedPrefs.forApp(context);
     }