Fixed local contact avatar not being displayed except in side-menu

This commit is contained in:
Sylvain Berfini 2022-06-03 11:14:35 +02:00
parent 5af5c8a1a6
commit e6152acf0e

View file

@ -386,6 +386,10 @@ fun Friend.getPictureUri(thumbnailPreferred: Boolean = false): Uri? {
ContactsContract.Contacts.Photo.CONTENT_DIRECTORY
)
} catch (e: Exception) { }
} else if (photo != null) {
try {
return Uri.parse(photo)
} catch (e: Exception) { }
}
return null
}