Skip to content
Snippets Groups Projects
Commit 6b24b104 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern: Committed by morgan
Browse files

Bug 42652: [android] Pass the list of supported languages to GeckoView.

It will be used to prevent leaks about regional preferences.
parent 5177b099
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1136Bug 43085: Rebased alpha onto 128.2.0esr
......@@ -15,6 +15,7 @@ import mozilla.components.experiment.NimbusExperimentDelegate
import mozilla.components.lib.crash.handler.CrashHandlerService
import mozilla.components.service.sync.autofill.GeckoCreditCardsAddressesStorageDelegate
import mozilla.components.service.sync.logins.GeckoLoginStorageDelegate
import org.mozilla.fenix.BuildConfig
import org.mozilla.fenix.Config
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings
......@@ -137,6 +138,7 @@ object GeckoProvider {
.extensionsProcessEnabled(true)
.extensionsWebAPIEnabled(true)
.translationsOfferPopup(context.settings().offerTranslation)
.supportedLocales(BuildConfig.SUPPORTED_LOCALE_ARRAY.toList())
.build()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment