From bc0b31d91575b9de6a0c993b07475ad339f98626 Mon Sep 17 00:00:00 2001 From: Shaik-Sirajuddin Date: Sat, 28 Oct 2023 13:06:24 +0530 Subject: [PATCH] fix app not opening on api level below 24 --- .../java/org/oppia/android/util/locale/AndroidLocaleFactory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/src/main/java/org/oppia/android/util/locale/AndroidLocaleFactory.kt b/utility/src/main/java/org/oppia/android/util/locale/AndroidLocaleFactory.kt index 7b1ba053a96..c2bda858f2d 100644 --- a/utility/src/main/java/org/oppia/android/util/locale/AndroidLocaleFactory.kt +++ b/utility/src/main/java/org/oppia/android/util/locale/AndroidLocaleFactory.kt @@ -74,7 +74,7 @@ class AndroidLocaleFactory @Inject constructor( val primaryLocaleSource = LocaleSource.createFromPrimary(localeContext) val fallbackLocaleSource = LocaleSource.createFromFallback(localeContext) val proposal = chooser.findBestProposal(primaryLocaleSource, fallbackLocaleSource) - memoizedLocales.putIfAbsent(localeContextg, proposal.computedLocale) + memoizedLocales.putIfAbsent(localeContext, proposal.computedLocale) proposal.computedLocale } }