diff options
author | Torsten Grote <t@grobox.de> | 2022-06-30 17:00:19 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2022-06-30 17:00:19 -0300 |
commit | cd973fd346a65d4187dcc09c7fc38563fe3902b1 (patch) | |
tree | c55dda79cdbbba44201607d37df0c92e86213eca /taler-kotlin-android | |
parent | a38443b8fe4149c78efbf01bc2dd8449323eaa9a (diff) | |
download | taler-android-cd973fd346a65d4187dcc09c7fc38563fe3902b1.tar.gz taler-android-cd973fd346a65d4187dcc09c7fc38563fe3902b1.tar.bz2 taler-android-cd973fd346a65d4187dcc09c7fc38563fe3902b1.zip |
Fix TalerUtils compile error
Diffstat (limited to 'taler-kotlin-android')
-rw-r--r-- | taler-kotlin-android/src/main/java/net/taler/common/TalerUtils.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/taler-kotlin-android/src/main/java/net/taler/common/TalerUtils.kt b/taler-kotlin-android/src/main/java/net/taler/common/TalerUtils.kt index bb2e78a..e75e4c8 100644 --- a/taler-kotlin-android/src/main/java/net/taler/common/TalerUtils.kt +++ b/taler-kotlin-android/src/main/java/net/taler/common/TalerUtils.kt @@ -29,8 +29,8 @@ object TalerUtils { // create a priority list of language ranges from system locales val locales = LocaleListCompat.getDefault() val priorityList = ArrayList<Locale.LanguageRange>(locales.size()) - for (i in 0 until locales.size()) { - priorityList.add(Locale.LanguageRange(locales[i].toLanguageTag())) + for (i in 0 until locales.size()) locales[i]?.let { locale -> + priorityList.add(Locale.LanguageRange(locale.toLanguageTag())) } // create a list of locales available in the given map val availableLocales = map.keys.mapNotNull { |