Rename loadIconAsync to loadIcon as it's no longer guaranteed to be called off the main thread

This commit is contained in:
MM20
2021-12-04 13:55:29 +01:00
parent 2273a0912a
commit c388b01fe8
11 changed files with 11 additions and 11 deletions
@@ -48,7 +48,7 @@ class Contact(
)
}
override suspend fun loadIconAsync(context: Context, size: Int): LauncherIcon? {
override suspend fun loadIcon(context: Context, size: Int): LauncherIcon? {
val contentResolver = context.contentResolver
val uri = ContactsContract.Contacts.getLookupUri(id, lookupKey) ?: return null
val bmp = ContactsContract.Contacts.openContactPhotoInputStream(contentResolver, uri, false)