enforce not null

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-06-03 13:38:53 +02:00
parent 156a845b16
commit ad60de30c6
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -118,7 +118,7 @@ class ContactAddressBookWorker(val context: Context, workerParameters: WorkerPar
val deviceContactsWithNumbers = collectContactsWithPhoneNumbersFromDevice()
if (deviceContactsWithNumbers.isNotEmpty()) {
val currentLocale = ConfigurationCompat.getLocales(context.resources.configuration)[0].country
val currentLocale = ConfigurationCompat.getLocales(context.resources.configuration)[0]!!.country
val map = mutableMapOf<String, Any>()
map["location"] = currentLocale