Skip to content

Commit

Permalink
fix: contact photo and name not loading due to missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhasDissa committed May 12, 2024
1 parent 59aaad5 commit 0bea79e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0bea79e

Please sign in to comment.