Bug 922694 - Part 4: grab Accept-Locale pref in FHR. r=mcomella

This commit is contained in:
Richard Newman
2013-10-16 18:56:27 -07:00
parent 401a8a2a6d
commit 0a51114d2a
4 changed files with 170 additions and 72 deletions

View File

@@ -1525,6 +1525,12 @@ public class GeckoAppShell
Gecko resets the locale to en-US by calling this function with an empty string.
This affects GeckoPreferences activity in multi-locale builds.
N.B., if this code ever becomes live again, you need to hook it up to locale
recording in BrowserHealthRecorder: we track the current app and OS locales
as part of the recorded environment.
See similar note in GeckoApp.java for the startup path.
//We're not using this, not need to save it (see bug 635342)
SharedPreferences settings =
getContext().getPreferences(Activity.MODE_PRIVATE);