Fixed local contact avatar not being displayed except in side-menu
This commit is contained in:
parent
5af5c8a1a6
commit
e6152acf0e
1 changed files with 4 additions and 0 deletions
|
@ -386,6 +386,10 @@ fun Friend.getPictureUri(thumbnailPreferred: Boolean = false): Uri? {
|
||||||
ContactsContract.Contacts.Photo.CONTENT_DIRECTORY
|
ContactsContract.Contacts.Photo.CONTENT_DIRECTORY
|
||||||
)
|
)
|
||||||
} catch (e: Exception) { }
|
} catch (e: Exception) { }
|
||||||
|
} else if (photo != null) {
|
||||||
|
try {
|
||||||
|
return Uri.parse(photo)
|
||||||
|
} catch (e: Exception) { }
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue