Pier Angelo Vendrame pushed to branch mullvad-browser-140.3.0esr-15.0-1 at The 
Tor Project / Applications / Mullvad Browser


Commits:
474ea66b by Pier Angelo Vendrame at 2025-09-30T10:40:52+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/mullvad-browser/-/commit/474ea66b5c5eaa19952a095f0bd93530749136e0

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/474ea66b5c5eaa19952a095f0bd93530749136e0
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to