Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Enable pocket stories in CA
Browse files Browse the repository at this point in the history
  • Loading branch information
csadilek authored and mergify[bot] committed Oct 7, 2021
1 parent 3f9d277 commit 1b463a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ object FeatureFlags {
* Show Pocket recommended stories on home.
*/
fun isPocketRecommendationsFeatureEnabled(context: Context): Boolean {
return "en-US" == LocaleManager.getCurrentLocale(context)
val langTag = LocaleManager.getCurrentLocale(context)
?.toLanguageTag() ?: getSystemDefault().toLanguageTag()
return listOf("en-US", "en-CA").contains(langTag)
}

/**
Expand Down

0 comments on commit 1b463a5

Please sign in to comment.