Merge pull request #6226 from vector-im/dependabot/gradle/androidx.core-core-ktx-1.8.0

Bump core-ktx from 1.7.0 to 1.8.0
This commit is contained in:
Benoit Marty 2022-06-07 23:43:21 +02:00 committed by GitHub
commit 733c2848a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ ext.libs = [
androidx : [
'activity' : "androidx.activity:activity:1.4.0",
'appCompat' : "androidx.appcompat:appcompat:1.4.2",
'core' : "androidx.core:core-ktx:1.7.0",
'core' : "androidx.core:core-ktx:1.8.0",
'recyclerview' : "androidx.recyclerview:recyclerview:1.2.1",
'exifinterface' : "androidx.exifinterface:exifinterface:1.3.3",
'fragmentKtx' : "androidx.fragment:fragment-ktx:1.4.1",

View File

@ -26,7 +26,7 @@ import javax.inject.Inject
class LocaleProvider @Inject constructor(private val resources: Resources) {
fun current(): Locale {
return ConfigurationCompat.getLocales(resources.configuration)[0]
return ConfigurationCompat.getLocales(resources.configuration).get(0) ?: Locale.getDefault()
}
}