diff --git a/app/src/main/java/com/bnyro/contacts/domain/repositories/PhoneLookupRepository.kt b/app/src/main/java/com/bnyro/contacts/domain/repositories/PhoneLookupRepository.kt index 5d5fefe4..d25a1e4a 100644 --- a/app/src/main/java/com/bnyro/contacts/domain/repositories/PhoneLookupRepository.kt +++ b/app/src/main/java/com/bnyro/contacts/domain/repositories/PhoneLookupRepository.kt @@ -111,14 +111,13 @@ class PhoneLookupRepository(private val context: Context) { query?.use { cursor -> if (cursor.moveToFirst()) { - BasicContactData( + return@withContext BasicContactData( number = phoneNumber, name = cursor.stringValue( PhoneLookup.DISPLAY_NAME ), thumbnail = cursor.stringValue(PhoneLookup.PHOTO_THUMBNAIL_URI)?.toUri() ) - } } BasicContactData(