Pier Angelo Vendrame pushed to branch tor-browser-140.3.0esr-15.0-1 at The Tor Project / Applications / Tor Browser Commits: b71d3c72 by Pier Angelo Vendrame at 2025-09-30T10:13:53+02:00 fixup! BB 42562: Normalized the Accepted Languages on Android. BB 43401: Replace Locale constructors with Locale.Builder. - - - - - 1 changed file: - mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java Changes: ===================================== mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java ===================================== @@ -609,7 +609,8 @@ public final class GeckoRuntimeSettings extends RuntimeSettings { for (String tag : locales) { Locale locale = Locale.forLanguageTag(tag); getSettings().mSupportedLocales.put(locale, locale); - getSettings().mSupportedLocales.put(new Locale(locale.getLanguage()), locale); + Locale lang = new Locale.Builder().setLanguage(locale.getLanguage()).build(); + getSettings().mSupportedLocales.put(lang, locale); } return this; } @@ -1384,7 +1385,7 @@ public final class GeckoRuntimeSettings extends RuntimeSettings { if (mSupportedLocales.containsKey(exact)) { return exact; } - Locale fallback = new Locale(exact.getLanguage()); + Locale fallback = new Locale.Builder().setLanguage(exact.getLanguage()).build(); return mSupportedLocales.get(fallback); } View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/b71d3c72... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/b71d3c72... You're receiving this email because of your account on gitlab.torproject.org.
participants (1)
-
Pier Angelo Vendrame (@pierov)